A handle for a particular node in the hierarchy.
Use these handles to access and modify parts of the hierarchy.
Make sure to check out the base class for the const methods.
Inheritance diagram for RMF::NodeHandle:Public Member Functions | |
| NodeHandle | add_child (std::string name, NodeType t) |
| NodeHandles | get_children () const |
| FileHandle | get_file () const |
Public Member Functions inherited from RMF::NodeConstHandle | |
| template<class T > | |
| T | get_association () const |
| Return the associated pointer for this node. | |
| bool | get_has_association () const |
| NodeID | get_id () const |
| get a unique id for this node | |
| std::string | get_name () const |
| Return the number of child nodes. | |
| NodeType | get_type () const |
| get the type of this node | |
| operator Showable () const | |
| template<class T > | |
| void | set_association (const T &v, bool overwrite=false) |
| void | show (std::ostream &out) const |
| Types | get_value (TypeKey k, int frame=-1) const |
| Types | get_value_always (TypeKey k, unsigned int frame=0) const |
| bool | get_has_value (TypeKey k, unsigned int frame=0) const |
Functions to access attributes | |
Type is one of the standard types. | |
| void | set_value (TypeKey k, Type v, int frame=-1) |
| NodeHandle RMF::NodeHandle::add_child | ( | std::string | name, |
| NodeType | t | ||
| ) |
Create a new node as a child of this one.