|
The List class is an extension of the Collect
class. It is used to handle a list of elements such as objects.
Properties
Methods
-
| string showStr(string
strBuf) |
|
Returns a string into strBuf stating
the object name and collection size.
|
-
| heapPtr at(number
positon) |
|
Returns a pointer to the node
at the specified position.
|
-
| heapPtr last() |
|
Returns a pointer to the last
node in the collection.
|
-
| heapPtr prev(heapPtr
pNode) |
|
Returns a pointer to the node
before the specified one in the collection.
|
-
| heapPtr addToFront(nodes) |
|
Adds the specified nodes to the
front of the element list. It returns a pointer to the object.
|
-
| heapPtr addToEnd(nodes) |
|
Adds the specified nodes to the
end of the element list. It returns a pointer to the object.
|
-
| heapPtr addToAfter(heapPtr
pNode, nodes) |
|
Adds the specified nodes to the
element list after pNode. It returns a pointer to the object.
|
-
| number indexOf(heapPtr
pNode) |
|
Returns the index of pNode in
the list of elements.
|
|