TOP --> libjdl
Tree enumerator.
The object allows you to enumerate over trees. It is very similar to the Java type Enumerator class. For an example of how an enumerator is used, see the CJdlRedBlackTree page.
public CJdlRedBlackTreeEnumerator ( CJdlRedBlackTreeNode * root ) ;
Default constructor.
root | The root of the tree to iterate over. |
public CJdlRedBlackTreeEnumerator ( CJdlRedBlackTreeNode * root , bool ascending ) ;
Parameterized constructor.
root | The root of the tree to iterate over. |
ascending | If true, enumerate in ascending order, otherwise enumerate in descending order. |
public bool HasMoreElements ( ) const ;
Does the tree have any more nodes?
public CJdlRedBlackTreeNode * GetNextElement ( ) ;
Get the next element or key in the tree.
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.