The classes are part of a tree. We need some information for the tree structure.
|
Private: |
m_parent_pt (SliceO_Class *) |
A pointer to the parent class (or NULL for the root class) of this instance.
|
|
m_child_nb (int) |
The number of children of this instance
|
|
|
m_child_pt (SliceO_Class **) |
An array of m_child_nb pointers to the children of this instance.
|
|
|
Public: |
Get a pointer to the parent of this instance.
|
|
|
Set the parent of this instance.
|
||
|
Get the number of children of this instance.
|
||
|
Get a pointer to a specific child of this instance.
|
||
|
Get a pointer to the child of this instance that is part of the "current" path.
|
||
|
Delete all children of this instance.
|
||
|
Add a child to this instance.
|