Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

XMLStorage::const_XMLChildrenFilter::const_iterator Struct Reference

internal iterator class More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::const_XMLChildrenFilter::const_iterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
XMLNode::Children::const_iterator 
BaseIterator
typedef const_iterator myType

Public Member Functions

 const_iterator (BaseIterator begin, BaseIterator end, const XS_String &filter_name)
 operator BaseIterator ()
const XMLNodeoperator* () const
const XMLNodeoperator-> () const
myTypeoperator++ ()
myType operator++ (int)
bool operator== (const myType &other) const
bool operator!= (const myType &other) const

Protected Member Functions

void search_next ()

Protected Attributes

BaseIterator _cur
BaseIterator _end
XS_String _filter_name

Detailed Description

internal iterator class

Definition at line 2048 of file xmlstorage.h.


Member Typedef Documentation

typedef XMLNode::Children::const_iterator XMLStorage::const_XMLChildrenFilter::const_iterator::BaseIterator

Definition at line 2050 of file xmlstorage.h.

Definition at line 2051 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::const_XMLChildrenFilter::const_iterator::const_iterator ( BaseIterator  begin,
BaseIterator  end,
const XS_String filter_name 
) [inline]

Definition at line 2053 of file xmlstorage.h.

References search_next().

         :  _cur(begin),
            _end(end),
            _filter_name(filter_name)
        {
            search_next();
        }

Here is the call graph for this function:


Member Function Documentation

XMLStorage::const_XMLChildrenFilter::const_iterator::operator BaseIterator (  ) [inline]

Definition at line 2061 of file xmlstorage.h.

References _cur.

        {
            return _cur;
        }
bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator!= ( const myType other ) const [inline]

Definition at line 2099 of file xmlstorage.h.

References _cur.

        {
            return _cur != other._cur;
        }
const XMLNode* XMLStorage::const_XMLChildrenFilter::const_iterator::operator* (  ) const [inline]

Definition at line 2066 of file xmlstorage.h.

References _cur.

        {
            return *_cur;
        }
myType& XMLStorage::const_XMLChildrenFilter::const_iterator::operator++ (  ) [inline]

Definition at line 2076 of file xmlstorage.h.

References _cur, and search_next().

        {
            ++_cur;
            search_next();

            return *this;
        }

Here is the call graph for this function:

myType XMLStorage::const_XMLChildrenFilter::const_iterator::operator++ ( int   ) [inline]

Definition at line 2084 of file xmlstorage.h.

References _cur, and search_next().

        {
            myType ret = *this;

            ++_cur;
            search_next();

            return ret;
        }

Here is the call graph for this function:

const XMLNode* XMLStorage::const_XMLChildrenFilter::const_iterator::operator-> (  ) const [inline]

Definition at line 2071 of file xmlstorage.h.

References _cur.

        {
            return *_cur;
        }
bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator== ( const myType other ) const [inline]

Definition at line 2094 of file xmlstorage.h.

References _cur.

        {
            return _cur == other._cur;
        }
void XMLStorage::const_XMLChildrenFilter::const_iterator::search_next (  ) [inline, protected]

Definition at line 2109 of file xmlstorage.h.

References _cur, _end, and _filter_name.

Referenced by const_iterator(), and operator++().

        {
            while(_cur!=_end && **_cur!=_filter_name)
                ++_cur;
        }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 2106 of file xmlstorage.h.

Referenced by search_next().

Definition at line 2107 of file xmlstorage.h.

Referenced by search_next().


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