#include <node.h>
Inheritance diagram for node< A >:


Public Types | |
| enum | nodetype_t { NORMAL = 0, CUTNODE = 1 } |
| enum | serializetype_t { SER_NODE = 0, SER_LEAF = 1, SER_CUTNODE = 2 } |
| Enumerations for flags in serialized array, and in file. More... | |
Public Member Functions | |
| node (const A &value, nodetype_t nodetype=NORMAL) | |
Construct a normal node by specifying value, and nodetype. | |
| node () | |
| Construct a node without the value. | |
| ~node () | |
| Destruct a node only. | |
| bool | isLeaf () const |
Public Attributes | |
| nodetype_t | nodetype |
The type of this node. Usually, NORMAL. | |
| node< A > * | left |
| The pointer to the left-child node. | |
| node< A > * | right |
| The pointer to the right-child node. | |
| node< A > * | parent |
| The pointer to the parent node. | |
| A | value |
| The value of this node. | |
Definition at line 18 of file node.h.
|
|||||
|
|
|
|||||
|
Enumerations for flags in serialized array, and in file.
|
|
||||||||||||||||
|
Construct a normal node by specifying
|
|
|||||||||
|
Construct a node without the value.
|
|
|||||||||
|
Destruct a node only.
|
|
|||||||||
|
|
|
|||||
|
The pointer to the left-child node.
|
|
|||||
|
The type of this node. Usually,
|
|
|||||
|
The pointer to the parent node.
|
|
|||||
|
The pointer to the right-child node.
|
|
|||||
|
The value of this node.
|
1.4.4