ITree Interface Reference

This interface may be implemented by a tree in order to allow a TreeDrawing to be constructed from the tree. More...

List of all members.

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.


Detailed Description

This interface may be implemented by a tree in order to allow a TreeDrawing to be constructed from the tree.

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.

Author:
Rod Howell (rhowell@ksu.edu).

Member Function Documentation

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.

See also:
System.Object.ToString()

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.


Generated on Sun May 25 09:41:52 2008 by  doxygen 1.5.5