C++ main module for gpm Package  1.0
GPM_ModelRootNode.h
Go to the documentation of this file.
1 #ifndef GPM_ModelRootNode_H
2 #define GPM_ModelRootNode_H
3 
4 
5 #include "GPM_ModelParentNode.h"
7 
18 
19  SP_OBJECT(GPM_ModelRootNode);
20  // ATTRIBUTES
21 
22 public:
23 
24 
25 
26 private:
27 
28  //ASSOCIATION
29 
30 protected:
31  // METHODS
32 
33  // CONSTRUCTORS
34 
37  GPM_ModelRootNode(void);
38 
39 
40 
41  // DESTRUCTORS
42 
43 
46  virtual ~GPM_ModelRootNode(void);
47 
48 
49 
50 public:
51 
54  inline static SP::GPM_ModelRootNode New() {
55  SP::GPM_ModelRootNode p(new GPM_ModelRootNode(),GPM_ModelRootNode::Delete());
56  p->setThis(p);
57  return p;
58  }
59  // SET Methods
60  // ===========
61 
62 
63  // GET Methods
64  // =============
65 
68  virtual void getLeaves(SV::GPM_ModelChildNode& nodes);
69 
70 
71  /* \brief build the rules calling tree
72  */
74 
75 private:
76  //void addNode(GPM_ModelChildNode *node,vector<int>& indices,map<tString,tBoolean>& isAdded) const;
78  map<tString,SP::GPM_ModelChildNode>& nodes,
79  const tString& ids,
80  const vector<tString>& vars,
81  const GPM_ModelGraphElement& v) const;
82 };
83 
84 #endif
virtual void getLeaves(SV::GPM_ModelChildNode &nodes)
get the leaves
Definition: GPM_ModelRootNode.cpp:16
This class describes a model parent node for tree.
Definition: GPM_ModelParentNode.h:20
DEFINE_SPTR(GPM_ModelRootNode)
virtual ~GPM_ModelRootNode(void)
destroy
Definition: GPM_ModelRootNode.cpp:10
This class describes a model GraphElement interface.
Definition: GPM_ModelGraphElement.h:21
GPM_ModelRootNode(void)
create
Definition: GPM_ModelRootNode.cpp:7
This class describes a model root node.
Definition: GPM_ModelRootNode.h:17
#define tBoolean
Definition: types.h:35
static SP::GPM_ModelRootNode New()
create a root node
Definition: GPM_ModelRootNode.h:54
This class describes a model parent node for tree.
Definition: GPM_ModelChildNode.h:18
#define tString
Definition: types.h:36
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
tBoolean orderRulesByCallTree(GPM_ModelGraphElement &v)
Definition: GPM_ModelRootNode.cpp:21