Craig's Utility Library
4.0 Beta
|
Binary tree More...
Public Member Functions | |
BinaryTree (TreeNode< T > root=null) | |
Constructor More... | |
virtual void | Add (T item) |
Adds an item to a binary tree More... | |
virtual void | Clear () |
Clears all items from the tree More... | |
virtual bool | Contains (T item) |
Determines if the tree contains an item More... | |
virtual void | CopyTo (T[] array, int arrayIndex) |
Copies the tree to an array More... | |
virtual IEnumerator< T > | GetEnumerator () |
Gets the enumerator More... | |
virtual bool | Remove (T item) |
Removes an item from the tree More... | |
override string | ToString () |
Outputs the tree as a string More... | |
Static Public Member Functions | |
static implicit | operator string (BinaryTree< T > Value) |
Converts the object to a string More... | |
Protected Member Functions | |
virtual TreeNode< T > | Find (T item) |
Finds a specific object More... | |
virtual void | Insert (T item) |
Inserts a value More... | |
virtual IEnumerable< TreeNode< T > > | Traversal (TreeNode< T > Node) |
Traverses the list More... | |
Properties | |
virtual int | Count [get] |
Number of items in the tree More... | |
virtual bool | IsEmpty [get] |
Is the tree empty More... | |
virtual bool | IsReadOnly [get] |
Is this read only? More... | |
virtual T | MaxValue [get] |
Gets the maximum value of the tree More... | |
virtual T | MinValue [get] |
Gets the minimum value of the tree More... | |
virtual TreeNode< T > | Root [get, set] |
The root value More... | |
virtual int | NumberOfNodes [get, set] |
The number of nodes in the tree More... | |
Binary tree
T | The type held by the nodes |
T | : | IComparable<T> |
Utilities.DataTypes.BinaryTree< T >.BinaryTree | ( | TreeNode< T > | root = null | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
protectedvirtual |
|
virtual |
|
protectedvirtual |
|
static |
|
virtual |
override string Utilities.DataTypes.BinaryTree< T >.ToString | ( | ) |
|
protectedvirtual |
|
get |
|
get |
|
get |
|
get |
|
get |
|
getsetprotected |
|
getset |