class DtEchelonHierarchyNode:
More...
Detailed Description
class DtEchelonHierarchyNode:
Instances of DtEchelonHierarchyNode are used to represent the objects in an echelon hierarchy.
Constructor & Destructor Documentation
| DtEchelonHierarchyNode::DtEchelonHierarchyNode |
( |
const DtModelKey & |
key | ) |
|
| virtual DtEchelonHierarchyNode::~DtEchelonHierarchyNode |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void DtEchelonHierarchyNode::removeAllChildren |
( |
| ) |
|
|
virtual |
Sets the parent pointer.
Emits parentChanged if parent is different from original value. Sets the parentValid flag to true.
| virtual void DtEchelonHierarchyNode::invalidateParent |
( |
| ) |
|
|
virtual |
Sets the parentValid flag to false.
Setting the parent will set the flag to true.
| virtual bool DtEchelonHierarchyNode::parentValid |
( |
| ) |
const |
|
virtual |
Returns the parentValid flag.
| virtual void DtEchelonHierarchyNode::setHeight |
( |
int |
value | ) |
|
|
virtual |
Set/Get the height of this node in the hierarchy.
A height of zero indicates a leaf node.
| virtual int DtEchelonHierarchyNode::height |
( |
| ) |
const |
|
virtual |
| virtual int DtEchelonHierarchyNode::parentHeight |
( |
| ) |
const |
|
virtual |
Get the parent height of this node in the hierarchy.
If the parent height is equal to the height then this node has no parent and is a root node.
| virtual const DtModelKey& DtEchelonHierarchyNode::modelKey |
( |
| ) |
const |
|
virtual |
| virtual void DtEchelonHierarchyNode::setModelKey |
( |
const DtModelKey & |
key | ) |
|
|
virtual |
| virtual bool DtEchelonHierarchyNode::isLeaf |
( |
| ) |
const |
|
virtual |
| virtual bool DtEchelonHierarchyNode::isRoot |
( |
| ) |
const |
|
virtual |
| virtual bool DtEchelonHierarchyNode::hasChild |
( |
const DtModelKey & |
| ) |
const |
|
virtual |
Returns true if the supplied key is in the immediate or other children of this object.
| virtual void DtEchelonHierarchyNode::parentDestroyed |
( |
| ) |
|
|
protectedvirtualslot |
| void DtEchelonHierarchyNode::parentChanged |
( |
const DtModelKey & |
myKey | ) |
|
|
signal |
Emitted whenever the parent pointer is changed.
myKey is the key of THIS node, not the parent.
Member Data Documentation
| int DtEchelonHierarchyNode::myHeight |
|
protected |
| bool DtEchelonHierarchyNode::myParentValid |
|
protected |
The documentation for this class was generated from the following file: