#include <SDXNodeContainer.h>

Public Member Functions | |
| NodeContainer () | |
| Constructor. | |
| virtual | ~NodeContainer () |
| Destructor. | |
| void | setDeallocateContentOnDestruct (bool v) |
| Set whether this NodeContainer should deallocate its children (and attributes if it's a Node) on destruct. | |
| NodeContainer & | addChild (Node *node) |
| Add child node. | |
| void | removeChild (unsigned int index, bool deallocate=true) |
| Remove child node. | |
| void | removeChild (Node *node, bool deallocate=true) |
| Remove child node. | |
| const std::vector< Node * > | getChildren () |
| Get all child nodes. | |
| const std::vector< Node * > | getChildren (std::string nodeName) |
| Get all child nodes named nodeName. | |
| Node * | getChild (std::string nodeName) |
| Get last child named nodeNode. | |
| Node * | getChild (unsigned int index=0) |
| Get child at index. | |
| Node * | getChild (std::string nodeName, std::string attributeValue, std::string attributeName="") |
| Get child with name nodeName which has an attribute with value attributeValue named attributeName. | |
Protected Attributes | |
| bool | m_deallocateContentOnDestruct |
| Whether to deallocate content on destruct. | |
Definition at line 14 of file SDXNodeContainer.h.
| NodeContainer & NodeContainer::addChild | ( | Node * | node | ) |
| void NodeContainer::removeChild | ( | unsigned int | index, | |
| bool | deallocate = true | |||
| ) |
Remove child node.
If there's no child at index, this function does nothing.
| index | Index of child node. | |
| deallocate | Whether to dealloate the child node. |
Definition at line 29 of file SDXNodeContainer.cpp.
| void NodeContainer::setDeallocateContentOnDestruct | ( | bool | v | ) |
Set whether this NodeContainer should deallocate its children (and attributes if it's a Node) on destruct.
| v | Whether this NodeContainer should deallocate its content on destruct. |
Definition at line 19 of file SDXNodeContainer.cpp.
1.5.8