#include <TreeItem.h>
Inheritance diagram for SortedTreeItem< PAYLOAD >:
Public Member Functions | |
SortedTreeItem (PAYLOAD val, SortedTreeItem< PAYLOAD > *parentItem=0) | |
virtual | ~SortedTreeItem () |
void | insertChildSorted (SortedTreeItem< PAYLOAD > *newChild) |
SortedTreeItem< PAYLOAD > * | parent () const |
SortedTreeItem< PAYLOAD > * | next () const |
SortedTreeItem< PAYLOAD > * | firstChild () const |
Private Member Functions | |
SortedTreeItem (const SortedTreeItem< PAYLOAD > &) | |
SortedTreeItem< PAYLOAD > & | operator= (const SortedTreeItem< PAYLOAD > &) |
Class 'PAYLOAD' to provide operator<() in addition to what template 'TreeItem' requires.
|
Constructor. Creates a new tree item with value "val" and inserts it in ascending sort order into the children list of "parent". |
|
Destructor. |
|
Private (i.e. disabled) copy constructor and operator=()
|
|
Returns this item's first child or 0 if there is none. Reimplemented from TreeItem< PAYLOAD >. |
|
Insert a child into the internal children list in ascending sort order. Called from the new child's constructor, thus 'public'. |
|
Returns this item's next sibling or 0 if there is none. Reimplemented from TreeItem< PAYLOAD >. |
|
|
|
Returns this item's parent or 0 if there is none. Reimplemented from TreeItem< PAYLOAD >. |