textwolf  0.2
Classes | Public Types | Public Member Functions | List of all members
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator Class Reference

input iterator for iterating on the output of an XML scanner More...

#include <xmlscanner.hpp>

Classes

class  Element
 Iterator element visited. More...
 

Public Types

typedef Element value_type
 
typedef std::size_t difference_type
 
typedef std::size_t size_type
 
typedef Elementpointer
 
typedef Elementreference
 
typedef std::input_iterator_tag iterator_category
 

Public Member Functions

void assign (const iterator &orig)
 Assign an iterator to another. More...
 
 iterator (const iterator &orig)
 Copy constructor. More...
 
 iterator (ThisXMLScanner &p_input, bool doSkipToFirst=true)
 Constructor. More...
 
 iterator (const End &et)
 Constructor. More...
 
 iterator ()
 Constructor. More...
 
iteratoroperator= (const iterator &orig)
 Assignement operator. More...
 
const Elementoperator* () const
 Element dereference operator. More...
 
const Elementoperator-> () const
 Element dereference operator. More...
 
iteratoroperator++ ()
 Preincrement. More...
 
iterator operator++ (int)
 Postincrement. More...
 
bool operator== (const iterator &iter) const
 Compare to check for equality. More...
 
bool operator!= (const iterator &iter) const
 Compare to check for unequality. More...
 

Detailed Description

template<class InputIterator, class InputCharSet_, class OutputCharSet_, class OutputBuffer_>
class textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator

input iterator for iterating on the output of an XML scanner

Member Typedef Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef std::size_t textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::difference_type
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef std::input_iterator_tag textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::iterator_category
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef Element* textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::pointer
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef Element& textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::reference
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef std::size_t textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::size_type
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
typedef Element textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::value_type

Constructor & Destructor Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::iterator ( const iterator orig)
inline

Copy constructor.

Parameters
[in]origiterator to copy
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::iterator ( ThisXMLScanner p_input,
bool  doSkipToFirst = true 
)
inline

Constructor.

Parameters
[in]p_inputXML scanner to use for iteration
[in]doSkipToFirsttrue, if the iterator should skip to the first character of the input (default behaviour of STL conform iterators but maybe not exception save)
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::iterator ( const End et)
inline

Constructor.

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::iterator ( )
inline

Constructor.

Member Function Documentation

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
void textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::assign ( const iterator orig)
inline

Assign an iterator to another.

Parameters
[in]origiterator to copy
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
bool textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator!= ( const iterator iter) const
inline

Compare to check for unequality.

Returns
true, if not equal
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
const Element& textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator* ( ) const
inline

Element dereference operator.

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
iterator& textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator++ ( )
inline

Preincrement.

Returns
*this
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
iterator textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator++ ( int  )
inline

Postincrement.

Returns
*this
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
const Element* textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator-> ( ) const
inline

Element dereference operator.

template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
iterator& textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator= ( const iterator orig)
inline

Assignement operator.

Parameters
[in]origiterator to assign to this
template<class InputIterator , class InputCharSet_ , class OutputCharSet_ , class OutputBuffer_ >
bool textwolf::XMLScanner< InputIterator, InputCharSet_, OutputCharSet_, OutputBuffer_ >::iterator::operator== ( const iterator iter) const
inline

Compare to check for equality.

Returns
true, if equal

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