XMLElementIterator Class Reference

An XMLElement iterator. More...

#include <XMLElementIterator.h++>

Inheritance diagram for XMLElementIterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 XMLElementIterator (XMLElement &elem, const String &name=String::null)
 Construct a new XMLElementIterator.
 ~XMLElementIterator ()
 Destructor.
void rewind ()
 Rewind the iterator to the first item in the sequence.
XMLElementnext () throw (OutOfBoundsException)
 Get the next item in the sequence.
bool hasNext ()
 Test if there are more items in the sequence.
void remove ()
 Remove the current item from the sequence.

Detailed Description

An XMLElement iterator.

Author:
Mark Lindner

Constructor & Destructor Documentation

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

Construct a new XMLElementIterator.

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

Destructor.


Member Function Documentation

bool hasNext (  )  [virtual]

Test if there are more items in the sequence.

Implements Iterator< XMLElement & >.

XMLElement & next (  )  throw (OutOfBoundsException) [virtual]

Get the next item in the sequence.

Implements Iterator< XMLElement & >.

void remove (  )  [virtual]

Remove the current item from the sequence.

Implements Iterator< XMLElement & >.

void rewind (  )  [virtual]

Rewind the iterator to the first item in the sequence.

Implements Iterator< XMLElement & >.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:10 2011 for libcommonc++ by  doxygen 1.6.3