- void log_creation();
- void log_destruction();
-
- StateType* get_state(std::string name);
- LinkType* get_link(std::string name);
- VariableType* get_variable(std::string name);
- void create_child(std::string name, std::string type_name);
- static Container* get_root();
+
+ Container* get_parent() const { return parent_; }
+ Type* get_type() const { return type_; }
+ StateType* get_state(const std::string& name);
+ LinkType* get_link(const std::string& name);
+ VariableType* get_variable(const std::string& name);
+ void create_child(const std::string& name, const std::string& type_name);
+ Container* get_child_by_name(const std::string& name) const { return children_.at(name); }
+ static Container* get_root() { return root_container_; }