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

XMLStorage::XMLChildrenFilter::iterator Struct Reference

internal iterator class More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLChildrenFilter::iterator:
Collaboration graph
[legend]

List of all members.

Public Types

typedef XMLNode::Children::iterator BaseIterator
typedef iterator myType

Public Member Functions

 iterator (BaseIterator begin, BaseIterator end, const XS_String &filter_name)
 operator BaseIterator ()
const XMLNodeoperator* () const
XMLNodeoperator* ()
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 1948 of file xmlstorage.h.


Member Typedef Documentation

typedef XMLNode::Children::iterator XMLStorage::XMLChildrenFilter::iterator::BaseIterator

Definition at line 1950 of file xmlstorage.h.

Definition at line 1951 of file xmlstorage.h.


Constructor & Destructor Documentation

XMLStorage::XMLChildrenFilter::iterator::iterator ( BaseIterator  begin,
BaseIterator  end,
const XS_String filter_name 
) [inline]

Definition at line 1953 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::XMLChildrenFilter::iterator::operator BaseIterator (  ) [inline]

Definition at line 1961 of file xmlstorage.h.

References _cur.

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

Definition at line 1999 of file xmlstorage.h.

References _cur.

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

Definition at line 1966 of file xmlstorage.h.

References _cur.

        {
            return *_cur;
        }
XMLNode* XMLStorage::XMLChildrenFilter::iterator::operator* (  ) [inline]

Definition at line 1971 of file xmlstorage.h.

References _cur.

        {
            return *_cur;
        }
myType XMLStorage::XMLChildrenFilter::iterator::operator++ ( int   ) [inline]

Definition at line 1984 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:

myType& XMLStorage::XMLChildrenFilter::iterator::operator++ (  ) [inline]

Definition at line 1976 of file xmlstorage.h.

References _cur, and search_next().

        {
            ++_cur;
            search_next();

            return *this;
        }

Here is the call graph for this function:

bool XMLStorage::XMLChildrenFilter::iterator::operator== ( const myType other ) const [inline]

Definition at line 1994 of file xmlstorage.h.

References _cur.

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

Definition at line 2009 of file xmlstorage.h.

References _cur, _end, and _filter_name.

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

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

Here is the caller graph for this function:


Member Data Documentation

Definition at line 2006 of file xmlstorage.h.

Referenced by search_next().

Definition at line 2007 of file xmlstorage.h.

Referenced by search_next().


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