|
lab_trees
Tempestuous Trees
|
Represents a tree node; that is, an element in a BinaryTree. More...
#include <binarytree.h>
Public Member Functions | |
| Node (const T &element) | |
| Node element constructor; sets children to point to NULL. More... | |
Public Attributes | |
| T | elem |
| Node * | left |
| Node * | right |
Represents a tree node; that is, an element in a BinaryTree.
It has a data element and pointers to its left and right children.
|
inline |
Node element constructor; sets children to point to NULL.
| element | The templated data element that the constructed node will hold. |