The GSList class is the class for instantiating singly linked lists. Theses list are used to support the creation of radio button groups.
This class subclasses the Object REXX Object class so all of its methods are also available to this class.
You should not use this class to create your own linked lists. It should only be used when creating a set radio buttons.
The class heirarchy
Object +---GSList |
The methods for the GSList class are documented below.
This method creates and initializes the list.
This is a example of how to create a new list.
myslist = .GSList~new() |
None.
The new GSList object.
This method appends an object to the end of the list.
This is a example of how to append an object to the end of the list.
myslist~append(myobject) |
None.
This method retrieve the head of the list.
This is a example of how to retrieve the head of the list.
head = myslist~head() |
None.
The list head pointer.
This method sets the head of the list.
This is a example of how to set the head of the list.
myslist~head = myobject |
None.
This method inserts an object into the the list.
This is a example of how to insert an object into the list.
position = 2 myslist~append(myobject, position) |
None.
This method prepends an object to the beginning of the list.
This is a example of how to prepend an object to the beginning of the list.
myslist~prepend(myobject) |
None.