Changeset 755 for cpp/frams/param/paramtree.h
- Timestamp:
- 03/14/18 23:52:40 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/param/paramtree.h
r744 r755 35 35 { 36 36 public: 37 class Node;38 typedef std::shared_ptr< Node> NodePtr;39 class Node37 class ParamTreeNode; 38 typedef std::shared_ptr<ParamTreeNode> NodePtr; 39 class ParamTreeNode 40 40 { 41 41 public: 42 42 ParamTree *tree; 43 Node *parent;43 ParamTreeNode *parent; 44 44 string name; //path component name 45 45 int group_index; //original group index or -1 for dummy nodes … … 47 47 NodePtr next_sibling; 48 48 49 Node(ParamTree *_tree = NULL,Node *_parent = NULL, const string &_name = "", int _group_index = -1)49 ParamTreeNode(ParamTree *_tree = NULL, ParamTreeNode *_parent = NULL, const string &_name = "", int _group_index = -1) 50 50 :tree(_tree), parent(_parent), name(_name), group_index(_group_index) {} 51 51 }; 52 Node root;52 ParamTreeNode root; 53 53 ParamInterface π 54 54 55 Node *addNode(Node* parent, const string &name, int group);56 Node *findNode(Node *parent, const string& name);55 ParamTreeNode *addNode(ParamTreeNode* parent, const string &name, int group); 56 ParamTreeNode *findNode(ParamTreeNode *parent, const string& name); 57 57 58 58 ParamTree(ParamInterface *_pi);
Note: See TracChangeset
for help on using the changeset viewer.