1 #ifndef GPM_ModelChildNode_H
2 #define GPM_ModelChildNode_H
30 WV::GPM_ModelParentNode mParents;
53 inline static SP::GPM_ModelChildNode
New() {
80 return mParents.get(index);
85 return mParents.get(index);
91 return mParents.getSize();
95 virtual void getLeaves(SV::GPM_ModelChildNode& nodes);
tBoolean isInAscendants(const GPM_ModelParentNode &node) const
return true if the node in in its ascent
Definition: GPM_ModelChildNode.cpp:41
int getParentsNumber() const
get the parents number
Definition: GPM_ModelChildNode.h:90
static SP::GPM_ModelChildNode New()
create a node
Definition: GPM_ModelChildNode.h:53
This class describes a model parent node for tree.
Definition: GPM_ModelParentNode.h:20
GPM_ModelParentNode * getParent(const int &index)
get the parent for writing
Definition: GPM_ModelChildNode.h:79
GPM_ModelChildNode(void)
create
Definition: GPM_ModelChildNode.cpp:3
#define tBoolean
Definition: types.h:35
DEFINE_SVPTR(GPM_ModelChildNode)
void removeFromParents(SP::GPM_ModelParentNode parent)
remove from parents
Definition: GPM_ModelChildNode.cpp:26
void addToParents(SP::GPM_ModelParentNode parent)
set to parent
Definition: GPM_ModelChildNode.cpp:10
DEFINE_SPTR(GPM_ModelChildNode)
This class describes a model parent node for tree.
Definition: GPM_ModelChildNode.h:18
virtual void getLeaves(SV::GPM_ModelChildNode &nodes)
get the leaves
Definition: GPM_ModelChildNode.cpp:53
const GPM_ModelParentNode * getParent(const int &index) const
get the parent for reading
Definition: GPM_ModelChildNode.h:84
virtual ~GPM_ModelChildNode(void)
destroy
Definition: GPM_ModelChildNode.cpp:6
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106