libcommonc++  0.7
XMLElementConstIterator Class Reference

An XMLElement const iterator. More...

#include <XMLElementConstIterator.h++>

Inheritance diagram for XMLElementConstIterator:
Collaboration diagram for XMLElementConstIterator:

Public Member Functions

 XMLElementConstIterator (const XMLElement &elem, const String &name=String::null)
 Construct a new XMLElementConstIterator. More...
 
 ~XMLElementConstIterator ()
 Destructor. More...
 
void rewind ()
 Rewind the iterator to the first item in the sequence. More...
 
const XMLElementnext ()
 
bool hasNext ()
 Test if there are more items in the sequence. More...
 
void remove ()
 

Detailed Description

An XMLElement const iterator.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ XMLElementConstIterator()

XMLElementConstIterator ( const XMLElement elem,
const String name = String::null 
)

Construct a new XMLElementConstIterator.

Parameters
elemThe XMLElement whose child elements will be iterated over.
nameIf not String::null, indicates that only elements with the given name should be iterated over.

◆ ~XMLElementConstIterator()

Destructor.

Member Function Documentation

◆ hasNext()

bool hasNext ( )
virtual

Test if there are more items in the sequence.

Implements Iterator< const XMLElement &>.

◆ next()

const XMLElement & next ( )
virtual
Exceptions
OutOfBoundsExceptionIf the iterator is already at the end.

Implements Iterator< const XMLElement &>.

◆ remove()

void remove ( )
virtual
Exceptions
UnsupportedOperationExceptionIf the iterator does not support this operation.

Implements Iterator< const XMLElement &>.

◆ rewind()

void rewind ( )
virtual

Rewind the iterator to the first item in the sequence.

Implements Iterator< const XMLElement &>.


The documentation for this class was generated from the following files: