internal children node list More...
#include <xmlstorage.h>


Public Types | |
| typedef std::list< XMLNode * > | super |
Public Member Functions | |
| Children () | |
| Children (Children &other) | |
| void | assign (Children &other) |
| void | move (Children &other) |
| Children & | operator= (Children &other) |
| void | copy (const Children &other) |
| void | clear () |
| bool | remove (XMLNode *node) |
Private Member Functions | |
| void | reset () |
internal children node list
Definition at line 1510 of file xmlstorage.h.
| typedef std::list<XMLNode*> XMLStorage::XMLNode::Children::super |
Definition at line 1512 of file xmlstorage.h.
| XMLStorage::XMLNode::Children::Children | ( | ) | [inline] |
Definition at line 1514 of file xmlstorage.h.
{
}
| XMLStorage::XMLNode::Children::Children | ( | Children & | other ) | [inline] |
Definition at line 1518 of file xmlstorage.h.
{
for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
push_back(*it);
}
| void XMLStorage::XMLNode::Children::assign | ( | Children & | other ) | [inline] |
Definition at line 1524 of file xmlstorage.h.
References clear(), and move().
Referenced by operator=().


| void XMLStorage::XMLNode::Children::clear | ( | ) | [inline] |
Definition at line 1550 of file xmlstorage.h.
References XMLStorage::XMLNode::clear().
Referenced by assign(), XMLStorage::XMLNode::clear(), XMLStorage::XMLNode::operator=(), and reset().
{
while(!empty()) {
XMLNode* node = back();
pop_back();
node->clear();
delete node;
}
}


| void XMLStorage::XMLNode::Children::copy | ( | const Children & | other ) | [inline] |
Definition at line 1544 of file xmlstorage.h.
References XMLStorage::XMLNode::XMLNode().
Referenced by XMLStorage::XMLNode::operator=().
{
for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
push_back(new XMLNode(**it));
}


| void XMLStorage::XMLNode::Children::move | ( | Children & | other ) | [inline] |
Definition at line 1530 of file xmlstorage.h.
References reset().
Referenced by assign(), and XMLStorage::XMLNode::filter().
{
for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
push_back(*it);
other.reset();
}


Definition at line 1538 of file xmlstorage.h.
References assign().
{
assign(other);
return *this;
}

| bool XMLStorage::XMLNode::Children::remove | ( | XMLNode * | node ) | [inline] |
Definition at line 1561 of file xmlstorage.h.
References XMLStorage::XMLNode::erase().
{
for(iterator it=begin(); it!=end(); ++it)
if (*it == node) {
erase(it);
return true;
}
return false;
}

| void XMLStorage::XMLNode::Children::reset | ( | ) | [inline, private] |
Definition at line 1573 of file xmlstorage.h.
References clear().
Referenced by move().
{
super::clear();
}


1.7.2