Public Types | Public Member Functions | Private Member Functions

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 1510 of file xmlstorage.h.


Member Typedef Documentation

Definition at line 1512 of file xmlstorage.h.


Constructor & Destructor Documentation

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);
        }

Member Function Documentation

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

Definition at line 1524 of file xmlstorage.h.

References clear(), and move().

Referenced by operator=().

        {
            clear();
            move(other);
        }

Here is the call graph for this function:

Here is the caller graph for this function:

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;
            }
        }

Here is the call graph for this function:

Here is the caller graph for this function:

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));
        }

Here is the call graph for this function:

Here is the caller graph for this function:

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();
        }

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 1538 of file xmlstorage.h.

References assign().

        {
            assign(other);
            return *this;
        }

Here is the call graph for this function:

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;
        }

Here is the call graph for this function:

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

Definition at line 1573 of file xmlstorage.h.

References clear().

Referenced by move().

        {
            super::clear();
        }

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this struct was generated from the following file: