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]

Public Types

typedef
XMLNode::Children::const_iterator 
BaseIterator

Public Member Functions

 const_iterator (BaseIterator begin, BaseIterator end, const XS_String &filter_name)
 operator BaseIterator ()
const XMLNodeoperator * () const
const_iteratoroperator++ ()
const_iterator operator++ (int)
bool operator== (const BaseIterator &other) const
bool operator!= (const BaseIterator &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 1169 of file xmlstorage.h.


Member Typedef Documentation

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

Definition at line 1171 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 1173 of file xmlstorage.h.

01174          :  _cur(begin),
01175             _end(end),
01176             _filter_name(filter_name)
01177         {
01178             search_next();
01179         }


Member Function Documentation

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

Definition at line 1181 of file xmlstorage.h.

01182         {
01183             return _cur;
01184         }

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

Definition at line 1186 of file xmlstorage.h.

01187         {
01188             return *_cur;
01189         }

const_iterator& XMLStorage::const_XMLChildrenFilter::const_iterator::operator++ (  )  [inline]

Definition at line 1191 of file xmlstorage.h.

01192         {
01193             ++_cur;
01194             search_next();
01195 
01196             return *this;
01197         }

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

Definition at line 1199 of file xmlstorage.h.

01200         {
01201             const_iterator ret = *this;
01202 
01203             ++_cur;
01204             search_next();
01205 
01206             return ret;
01207         }

bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator== ( const BaseIterator other  )  const [inline]

Definition at line 1209 of file xmlstorage.h.

01210         {
01211             return _cur == other;
01212         }

bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator!= ( const BaseIterator other  )  const [inline]

Definition at line 1214 of file xmlstorage.h.

01215         {
01216             return _cur != other;
01217         }

void XMLStorage::const_XMLChildrenFilter::const_iterator::search_next (  )  [inline, protected]

Definition at line 1224 of file xmlstorage.h.

01225         {
01226             while(_cur!=_end && **_cur!=_filter_name)
01227                 ++_cur;
01228         }


Field Documentation

BaseIterator XMLStorage::const_XMLChildrenFilter::const_iterator::_cur [protected]

Definition at line 1220 of file xmlstorage.h.

BaseIterator XMLStorage::const_XMLChildrenFilter::const_iterator::_end [protected]

Definition at line 1221 of file xmlstorage.h.

XS_String XMLStorage::const_XMLChildrenFilter::const_iterator::_filter_name [protected]

Definition at line 1222 of file xmlstorage.h.


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage