Rudiments
|
#include <treecollection.h>
Inherits nodecollection< valuetype >.
Inherited by avltree< valuetype >.
The treecollection class is the parent class for all rudiments tree collections.
|
inline |
Creates an empty instance of the treecollection class.
|
inline |
Creates an instance of the treecollection class that is a copy of "a".
|
pure virtual |
Detaches "node" from the tree.
Implemented in avltree< valuetype >.
|
pure virtual |
Returns a pointer to the first treenode below "startnode" containing "value" or NULL if "value" was not found.
Implemented in avltree< valuetype >.
Returns a pointer to the first treenode containing "value" or NULL if "value" was not found.
Implemented in avltree< valuetype >.
|
pure virtual |
Returns the first node in the treecollection (in an in-order, depth-first traversal).
Implements nodecollection< valuetype >.
Implemented in avltree< valuetype >.
|
pure virtual |
Returns the last node in the treecollection (in an in-order, depth-first traversal).
Implemented in avltree< valuetype >.
|
pure virtual |
Returns the node after "node" or NULL if this node is the last node in the tree (in an in-order, depth-first traversal). "node" is presumed to be in the tree.
Implemented in avltree< valuetype >.
|
pure virtual |
Returns the node prior to "node" or NULL if this node is the first node in the tree (in an in-order, depth-first traversal). "node" is presumed to be in the tree.
Implemented in avltree< valuetype >.
|
pure virtual |
Returns the top-most node in the treecollection.
Implemented in avltree< valuetype >.
Returns "tree".
Implements collection.
Inserts already created treenode "node" to the treecollection.
Implemented in avltree< valuetype >.
|
inlinevirtual |
Creates new treenodes containing "count" members of array "value" and inserts them into the treecollection.
|
pure virtual |
Creates a new treenode containing "value" and prepends it to the avltree.
Implemented in avltree< valuetype >.
Removed avltreenode "node" from the avltree.
The value stored in the avltreenode 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 avltree< valuetype >.
|
pure virtual |
Deletes the first avltreenode containing "value".
The value stored in the avltreenode 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 avltree< valuetype >.
|
pure virtual |
Deletes all avltreenodes containing "value".
The value stored in each avltreenode 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 avltree< valuetype >.
|
inlinevirtual |
Writes a representation of the treecollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a representation of the treecollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the treecollection to standard output.
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the treecollection 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 treecollection to "out".
Implements collection.
|
inlinevirtual |
Writes a JSON representation of the treecollection 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.
|
inlinevirtual |
Writes an XML representation of the treecollection to standard output.
|
inlinevirtual |
Writes an XML representation of the treecollection to standard output.
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.
|
inlinevirtual |
Writes an XML representation of the treecollection to "out".
|
inlinevirtual |
Writes an XML representation of the treecollection to "out".
If "indent" is true, then the output is automatically indented. If "indent" is false, then the tree is written without indentation.