XML Library
|
The mixin class used for node types that can contain other nodes. More...
#include <NodeContainer.hpp>
Public Types | |
typedef Nodes::const_iterator | const_iterator |
The container const iterator. | |
typedef Nodes::iterator | iterator |
The container iterator. | |
Public Member Functions | |
bool | hasChildren () const |
Query if the node has any child nodes. | |
size_t | getChildCount () const |
Get the count of child nodes. | |
const_iterator | beginChild () const |
Get the start iterator for the child nodes. | |
const_iterator | endChild () const |
Get the end iterator for the child nodes. | |
iterator | beginChild () |
Get the start iterator for the child nodes. | |
iterator | endChild () |
Get the end iterator for the child nodes. | |
void | appendChild (NodePtr &pNode) |
Append a child node. | |
template<typename T > | |
void | appendChild (Core::RefCntPtr< T > &pNode) |
Append a child node. | |
Protected Member Functions | |
NodeContainer (Node *pParent) | |
Constructor. | |
virtual | ~NodeContainer () |
Destructor. | |
Private Member Functions | |
NodeContainer (const NodeContainer &) | |
NodeContainer & | operator= (const NodeContainer) |
Private Attributes | |
Node * | m_pParent |
The outer parent node. | |
Nodes | m_vChildNodes |
The collection of child nodes. |
The mixin class used for node types that can contain other nodes.
The outer parent node is held internally so that we can fix up the child nodes here automatically.
typedef Nodes::const_iterator XML::NodeContainer::const_iterator |
The container const iterator.
typedef Nodes::iterator XML::NodeContainer::iterator |
The container iterator.
XML::NodeContainer::NodeContainer | ( | Node * | pParent | ) | [protected] |
Constructor.
XML::NodeContainer::~NodeContainer | ( | ) | [protected, virtual] |
Destructor.
XML::NodeContainer::NodeContainer | ( | const NodeContainer & | ) | [private] |
bool XML::NodeContainer::hasChildren | ( | ) | const [inline] |
Query if the node has any child nodes.
size_t XML::NodeContainer::getChildCount | ( | ) | const [inline] |
Get the count of child nodes.
NodeContainer::const_iterator XML::NodeContainer::beginChild | ( | ) | const [inline] |
Get the start iterator for the child nodes.
NodeContainer::const_iterator XML::NodeContainer::endChild | ( | ) | const [inline] |
Get the end iterator for the child nodes.
NodeContainer::iterator XML::NodeContainer::beginChild | ( | ) | [inline] |
Get the start iterator for the child nodes.
NodeContainer::iterator XML::NodeContainer::endChild | ( | ) | [inline] |
Get the end iterator for the child nodes.
void XML::NodeContainer::appendChild | ( | NodePtr & | pNode | ) |
Append a child node.
void XML::NodeContainer::appendChild | ( | Core::RefCntPtr< T > & | pNode | ) | [inline] |
Append a child node.
NodeContainer& XML::NodeContainer::operator= | ( | const NodeContainer | ) | [private] |
Node* XML::NodeContainer::m_pParent [private] |
The outer parent node.
Nodes XML::NodeContainer::m_vChildNodes [private] |
The collection of child nodes.