#include <DEFNodes.h>
Public Types | |
|
typedef map< const string, Node * >::const_iterator | const_iterator |
Public Member Functions | |
| ~DEFNodes () | |
| Destructor. unrefs all the nodes in the map. | |
| const_iterator | begin () |
| Returns a const_iterator to the first element in the DEFNodes struct. | |
| const_iterator | end () |
| Returns a const_iterator to the end element in the DEFNodes struct. | |
| void | addNode (const string &def_name, Node *def_node) |
| Adds a DEF name/Node * pair to the structure. | |
| void | removeNode (const string &def_name) |
| Removes a DEF name/Node * pair from the structure. | |
| void | merge (DEFNodes *dn) |
| Add the entries from another DEFNodes structure do this one. | |
| void | clear () |
| Removes all the entries in the map. | |
| Node * | getNode (const string &def_name) |
| Get the node by its DEF name. | |
| template<class NodeType> | |
| void | getNode (const string &def_name, NodeType *&return_node) |
| Get the node by its DEF name. | |
|
||||||||||||
|
Adds a DEF name/Node * pair to the structure.
|
|
||||||||||||||||
|
Get the node by its DEF name.
|
|
|
Get the node by its DEF name.
|
|
|
Add the entries from another DEFNodes structure do this one. If an entry already exists it will be replaced. |
|
|
Removes a DEF name/Node * pair from the structure.
|
1.4.5