TreeNode

used by Tree class to hold individual nodes in the tree

Constructors

this
this(T dataToStore)

constructor

this
this(TreeNode!(T)* parent)

constructor

this
this(TreeNode!(T)*[] children)

constructor

this
this(T dataToStore, TreeNode!(T)*[] children, TreeNode!(T)* parent)

constructor

Members

Variables

childNodes
TreeNode!(T)*[] childNodes;

stores child nodes

data
T data;

the data stored

parentPtr
TreeNode!(T)* parentPtr;

pointer to the parent node, if this is null, this is the root of the tree

Meta