SList containers are data types that holds an ordered collection of values (SObject) , where the same value may occur more than once. There is currently one implementation of the SList container.
The iterator (SIterator) implementation returns the elements (as SObject) of the list for the SIteratorObject(), and SIteratorUnlink() function calls. The SIteratorKey() method is not implemented and will set an error and return NULL if called for SList type iterators.
Also see SList Iteration Example.
A list class.
An abstract data structure that implements an ordered collection of values (of type SObject), where the same value may occur more than once.
The list class structure.
It inherits from SContainer so that it supports different list implementations.
Test to see if the given list is empty.
Parameters: |
|
---|---|
Return: |
Return the number of SObject in the list.
Parameters: |
|
---|---|
Return: | The number of SObject objects in the list. |
Test if the given SObject in the list.
Parameters: |
|
---|---|
Return: | |
Note: | The SObjectClass function pointer compare must be implemented for the given object type. |
Append an SObject to end of list.
Parameters: |
|
---|---|
Note: | The list takes hold of the appended object, and therefore the object should not be deleted with a call to S_DELETE. |
Prepend SObject to beginning of list.
Parameters: |
|
---|---|
Note: | The list takes hold of the prepended object, and therefore the object should not be deleted with a call to S_DELETE. |
Insert an SObject before the one currently pointed to by the iterator.
Parameters: |
|
---|---|
Note: | The list takes hold of the inserted object, and therefore the object should not be deleted with a call to S_DELETE. |
Insert SObject after the one currently pointed to by the iterator.
Parameters: |
|
---|---|
Note: | The list takes hold of the inserted object, and therefore the object should not be deleted with a call to S_DELETE. |
Merge two lists.
Append all the SObject of one list onto another list. For example:
self = (12, "a", 0.9644)
with = (5.31, "a")
SListMerge(self, with, error);
self = (12, "a", 0.9644, 5.31, "a")
with = (5.31, "a")
Parameters: |
|
---|
Copy (shallow) the list objects from src to dst.
If dst does not exist a new one will be created.
Parameters: |
|
---|---|
Return: | Pointer to destination list. |
Push SObject into end of list.
Parameters: |
|
---|---|
Note: | The list takes hold of the pushed object, and therefore the object should not be deleted with a call to S_DELETE. |