Rudiments
|
#include <listcollection.h>
Inherits nodecollection< valuetype >.
Inherited by linkedlist< valuetype >, and singlylinkedlist< valuetype >.
The listcollection class is the parent class for all rudiments list collections.
|
inline |
Creates an empty instance of the listcollection class.
|
inline |
Creates an instance of the listcollection class that is a copy of "a".
Appends already created listnode "node" to the listcollection.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
inlinevirtual |
Creates new listnodes containing "count" members of array "value" and appends them to the listcollection.
|
pure virtual |
Creates a new listnode containing "value" and appends it to the listcollection.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
Detaches "node" from the list.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Returns a pointer to the first listnode after "startnode" containing "value" or NULL if "value" was not found.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
Returns a pointer to the first listnode containing "value" or NULL if "value" was not found.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Returns the first node in the listcollection.
Implements nodecollection< valuetype >.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Returns the node after "node" or NULL if this node is the last node in the list. "node" is presumed to be in the list.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
Returns "list".
Implements collection.
|
pure virtual |
Inserts already created listnode "newnode" into the listcollection after "node".
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
inlinevirtual |
Creates new listnodes containing "count" members of array "value" and inserts them into the listcollection after "node".
|
pure virtual |
Creates a new listnode containing "value" and inserts it into the listcollection after "node".
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Inserts already created listnode "newnode" into the listcollection before "node".
Implemented in linkedlist< valuetype >.
|
inlinevirtual |
Creates new listnodes containing "count" members of array "value" and inserts them into the listcollection before "node".
|
pure virtual |
Creates a new listnode containing "value" and inserts it into the listcollection before "node".
Implemented in linkedlist< valuetype >.
|
pure virtual |
Moves node "nodetomove" to the position after "node" in the listcollection.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Moves node "nodetomove" to the position before "node" in the listcollection.
Implemented in linkedlist< valuetype >.
Prepends already created listnode "node" to the listcollection.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
inlinevirtual |
Creates new listnodes containing "count" members of array "value" and prepends them to the listcollection.
|
pure virtual |
Creates a new listnode containing "value" and prepends it to the listcollection.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
Removes listnode "node" from the listcollection.
The value stored in the listnode is only deleted if setManageValues(true) or setManageArrayValues(true) has been called.
Note that this operation does not require a search and is far less expensive than the remove(value) operation and removeAll().
Returns true on success and false on failure.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Deletes the first listnode containing "value".
The value stored in the listnode is only deleted if setManageValues(true) or setManageArrayValues(true) has been called.
Note that this operation requires a search and is expensive in both execution time and code size.
Returns true on success and false on failure.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Deletes all listnodes containing "value".
The value stored in each listnode is only deleted if setManageValues(true) or setManageArrayValues(true) has been called.
Note that this operation requires a search and is expensive in both execution time and code size.
Returns true on success and false on failure.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
pure virtual |
Sorts the listcollection.
This sort is potentially much slower than sortQuickly() but uses no additional memory.
The order that the items are sorted into depends on the comparator that is being used, and how that comparator is configured. The default comparator, in its default configuration causes the list to be sorted in ascending order.
See collection::setComparator() and the comparator class for more detail.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
Sorts the listcollection.
This sort is potentially much faster than sortInexpensively() but uses additional memory in proportion to the size of the list.
The order that the items are sorted into depends on the comparator that is being used, and how that comparator is configured. The default comparator, in its default configuration causes the list to be sorted in ascending order.
See collection::setComparator() and the comparator class for more detail.
Implemented in linkedlist< valuetype >, and singlylinkedlist< valuetype >.
|
inlinevirtual |
Writes a representation of the listcollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a representation of the listcollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the listcollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the listcollection to standard output.
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the listcollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the listcollection to "out".
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
Implements collection.