Public Member Functions | |
object | GetRoot () |
Returns the root of the tree. | |
ITree[] | GetChildren () |
Returns the children of the tree. | |
bool | IsEmpty () |
Returns true if the tree is empty. |
Empty trees may be represented either by null references or by objects whose IsEmpty() methods return true. If null references are used, IsEmpty() should always return false.
object GetRoot | ( | ) |
Returns the root of the tree.
The TreeDrawing class converts the returned object to a string. In order to control how this conversion is done, its ToString() method may be overridden.
ITree [] GetChildren | ( | ) |
Returns the children of the tree.
A null returned value is treated as equivalent to an array of length 0.
bool IsEmpty | ( | ) |
Returns true if the tree is empty.