internal iterator class More...
#include <xmlstorage.h>
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 XMLNode * | operator* () const |
XMLNode * | operator* () |
myType & | operator++ () |
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 |
internal iterator class
Definition at line 1948 of file xmlstorage.h.
typedef XMLNode::Children::iterator XMLStorage::XMLChildrenFilter::iterator::BaseIterator |
Definition at line 1950 of file xmlstorage.h.
Definition at line 1951 of file xmlstorage.h.
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(); }
XMLStorage::XMLChildrenFilter::iterator::operator BaseIterator | ( | ) | [inline] |
bool XMLStorage::XMLChildrenFilter::iterator::operator!= | ( | const myType & | other ) | const [inline] |
const XMLNode* XMLStorage::XMLChildrenFilter::iterator::operator* | ( | ) | const [inline] |
XMLNode* XMLStorage::XMLChildrenFilter::iterator::operator* | ( | ) | [inline] |
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; }
myType& XMLStorage::XMLChildrenFilter::iterator::operator++ | ( | ) | [inline] |
Definition at line 1976 of file xmlstorage.h.
References _cur, and search_next().
{ ++_cur; search_next(); return *this; }
bool XMLStorage::XMLChildrenFilter::iterator::operator== | ( | const myType & | other ) | const [inline] |
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; }
Definition at line 2005 of file xmlstorage.h.
Referenced by operator BaseIterator(), operator!=(), operator*(), operator++(), operator==(), and search_next().
Definition at line 2006 of file xmlstorage.h.
Referenced by search_next().
Definition at line 2007 of file xmlstorage.h.
Referenced by search_next().