XMLStorage::XMLNode::Children Struct Reference

internal children node list More...

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XMLNode::Children:

Inheritance graph
[legend]
Collaboration diagram for XMLStorage::XMLNode::Children:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< XMLNode * > super

Public Member Functions

 Children ()
 Children (Children &other)
void assign (Children &other)
void move (Children &other)
Childrenoperator= (Children &other)
void copy (const Children &other)
void clear ()
bool remove (XMLNode *node)

Private Member Functions

void reset ()


Detailed Description

internal children node list

Definition at line 909 of file xmlstorage.h.


Member Typedef Documentation

typedef std::list<XMLNode*> XMLStorage::XMLNode::Children::super

Definition at line 911 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLNode::Children::Children (  )  [inline]

Definition at line 913 of file xmlstorage.h.

00915         {

XMLStorage::XMLNode::Children::Children ( Children other  )  [inline]

Definition at line 917 of file xmlstorage.h.

00919         {
00920             for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
00921                 push_back(*it);


Member Function Documentation

void XMLStorage::XMLNode::Children::assign ( Children other  )  [inline]

Definition at line 923 of file xmlstorage.h.

00925         {
00926             clear();
00927             move(other);

void XMLStorage::XMLNode::Children::move ( Children other  )  [inline]

Definition at line 929 of file xmlstorage.h.

References reset().

Referenced by XMLStorage::XMLNode::filter().

00931         {
00932             for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
00933                 push_back(*it);
00934 
00935             other.reset();

Here is the call graph for this function:

Here is the caller graph for this function:

Children& XMLStorage::XMLNode::Children::operator= ( Children other  )  [inline]

Definition at line 937 of file xmlstorage.h.

References XMLStorage::XS_String::assign().

00939         {
00940             assign(other);
00941             return *this;

Here is the call graph for this function:

void XMLStorage::XMLNode::Children::copy ( const Children other  )  [inline]

Definition at line 943 of file xmlstorage.h.

00945         {
00946             for(Children::const_iterator it=other.begin(); it!=other.end(); ++it)
00947                 push_back(new XMLNode(**it));

void XMLStorage::XMLNode::Children::clear (  )  [inline]

Definition at line 949 of file xmlstorage.h.

References XMLStorage::XMLNode::clear().

00951         {
00952             while(!empty()) {
00953                 XMLNode* node = back();
00954                 pop_back();
00955 
00956                 node->clear();
00957                 delete node;
00958             }

Here is the call graph for this function:

bool XMLStorage::XMLNode::Children::remove ( XMLNode node  )  [inline]

Definition at line 960 of file xmlstorage.h.

00962         {
00963             for(iterator it=begin(); it!=end(); ++it)
00964                 if (*it == node) {
00965                     erase(it);
00966                     return true;
00967                 }
00968 
00969             return false;

void XMLStorage::XMLNode::Children::reset (  )  [inline, private]

Definition at line 972 of file xmlstorage.h.

Referenced by move().

00972            :
00973         void reset()
00974         {
00975             super::clear();
        }

Here is the caller graph for this function:


The documentation for this struct was generated from the following file:
Generated on Sat Jan 9 00:05:51 2010 for XMLStorage/C++ by  doxygen 1.5.4