ReactOS 0.4.15-dev-8222-g9164419
XMLStorage::const_XMLChildrenFilter::const_iterator Struct Reference

internal iterator class More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::const_XMLChildrenFilter::const_iterator:

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

Member Typedef Documentation

◆ BaseIterator

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

Definition at line 1415 of file xmlstorage.h.

◆ myType

Constructor & Destructor Documentation

◆ const_iterator()

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

Member Function Documentation

◆ operator BaseIterator()

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

Definition at line 1426 of file xmlstorage.h.

1427 {
1428 return _cur;
1429 }

◆ operator!=()

bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator!= ( const myType other) const
inline

Definition at line 1459 of file xmlstorage.h.

1460 {
1461 return _cur != other._cur;
1462 }
int other
Definition: msacm.c:1376

◆ operator*()

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

Definition at line 1431 of file xmlstorage.h.

1432 {
1433 return *_cur;
1434 }

◆ operator++() [1/2]

myType & XMLStorage::const_XMLChildrenFilter::const_iterator::operator++ ( )
inline

Definition at line 1436 of file xmlstorage.h.

1437 {
1438 ++_cur;
1439 search_next();
1440
1441 return *this;
1442 }

◆ operator++() [2/2]

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

Definition at line 1444 of file xmlstorage.h.

1445 {
1446 myType ret = *this;
1447
1448 ++_cur;
1449 search_next();
1450
1451 return ret;
1452 }
int ret

◆ operator==()

bool XMLStorage::const_XMLChildrenFilter::const_iterator::operator== ( const myType other) const
inline

Definition at line 1454 of file xmlstorage.h.

1455 {
1456 return _cur == other._cur;
1457 }

◆ search_next()

void XMLStorage::const_XMLChildrenFilter::const_iterator::search_next ( )
inlineprotected

Definition at line 1469 of file xmlstorage.h.

1470 {
1471 while(_cur!=_end && **_cur!=_filter_name)
1472 ++_cur;
1473 }

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

Member Data Documentation

◆ _cur

BaseIterator XMLStorage::const_XMLChildrenFilter::const_iterator::_cur
protected

◆ _end

BaseIterator XMLStorage::const_XMLChildrenFilter::const_iterator::_end
protected

Definition at line 1466 of file xmlstorage.h.

Referenced by search_next().

◆ _filter_name

XS_String XMLStorage::const_XMLChildrenFilter::const_iterator::_filter_name
protected

Definition at line 1467 of file xmlstorage.h.

Referenced by search_next().


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