#include <genhier.h>
Public Member Functions | |
GenericHierarchy () | |
UtilExport | ~GenericHierarchy () |
UtilExport void | AddEntry (int data, int parent=-1) |
UtilExport int | Entries () |
UtilExport HierarchyEntry * | GetStart () |
UtilExport HierarchyEntry * | FindEntry (int data, HierarchyEntry *start=NULL) |
UtilExport int | NumberOfChildren (int data) |
UtilExport int | GetChild (int data, int index) |
UtilExport void | New () |
UtilExport void | Sort () |
UtilExport BOOL | IsCompatible (GenericHierarchy &hier) |
UtilExport void | Dump (HierarchyEntry *start=NULL) |
UtilExport GenericHierarchy & | operator= (GenericHierarchy &from) |
UtilExport MSTR & | SortKey () |
GenericHierarchy | ( | ) | [inline] |
{ root = HierarchyEntry(-1,NULL,NULL); isSorted = FALSE; }
UtilExport ~GenericHierarchy | ( | ) |
UtilExport void AddEntry | ( | int | data, |
int | parent = -1 |
||
) |
UtilExport int Entries | ( | ) |
UtilExport HierarchyEntry* GetStart | ( | ) | [inline] |
{ return root.child; } // Get the first item under the root
UtilExport HierarchyEntry* FindEntry | ( | int | data, |
HierarchyEntry * | start = NULL |
||
) |
UtilExport int NumberOfChildren | ( | int | data | ) |
UtilExport int GetChild | ( | int | data, |
int | index | ||
) |
UtilExport void New | ( | ) |
UtilExport void Sort | ( | ) |
UtilExport BOOL IsCompatible | ( | GenericHierarchy & | hier | ) |
UtilExport void Dump | ( | HierarchyEntry * | start = NULL | ) |
UtilExport GenericHierarchy& operator= | ( | GenericHierarchy & | from | ) |
UtilExport MSTR& SortKey | ( | ) |