Trees
Variables of the tree and treeitem (tree item) types allow you to work with "trees". For using this library, it is required to specify the file tree.ge (from Lib subfolder) with include command.
Operations
Methods
Methods for tree items
OperationsOperations defined for the variable of tree type are listed below. The second column contains possible statements where typename is a variable or an expression of the specified type.
| Operation | Syntax | Return type | Comments |
| Variable description | tree name[i] tree name of type | - | Tree description. If no item type is specified, uint is used. |
| * | * tree * treeitem | uint | Get the number of items. |
| foreach | The option of using in the foreach operator. A description of an additional variable of the treeitems type is required. The foreach operator is used for variables of the treeitem type and goes through all child items of this object.treeitems tis
...
foreach treeitem cur, ti.items( tis )
{
...
} |
Methods
Methods for tree items

 |

Copyright © 2004-2006 Gentee Inc. All rights reserved.
 |