textwolf  0.2
Public Member Functions | List of all members
textwolf::IStreamIterator Class Reference

Input iterator on an STL input stream. More...

#include <istreamiterator.hpp>

Inheritance diagram for textwolf::IStreamIterator:
textwolf::throws_exception

Public Member Functions

 IStreamIterator ()
 Default constructor. More...
 
 ~IStreamIterator ()
 Destructor. More...
 
 IStreamIterator (IStream *input, std::size_t bufsize=8192)
 Constructor. More...
 
 IStreamIterator (const IStreamIterator &o)
 Copy constructor. More...
 
char operator* ()
 Element access. More...
 
IStreamIteratoroperator++ ()
 Pre increment. More...
 
int operator- (const IStreamIterator &o) const
 
PositionIndex position () const
 

Additional Inherited Members

- Public Types inherited from textwolf::throws_exception
enum  Cause {
  Unknown, DimOutOfRange, StateNumbersNotAscending, InvalidParamState,
  InvalidParamChar, DuplicateStateTransition, InvalidState, IllegalParam,
  IllegalAttributeName, OutOfMem, ArrayBoundsReadWrite, NotAllowedOperation,
  FileReadError, IllegalXmlHeader, InvalidTagOffset, CorruptTagStack,
  CodePageIndexNotSupported
}
 Enumeration of error cases. More...
 

Detailed Description

Input iterator on an STL input stream.

Constructor & Destructor Documentation

textwolf::IStreamIterator::IStreamIterator ( )
inline

Default constructor.

textwolf::IStreamIterator::~IStreamIterator ( )
inline

Destructor.

textwolf::IStreamIterator::IStreamIterator ( IStream input,
std::size_t  bufsize = 8192 
)
inline

Constructor.

Parameters
[in]inputinput to iterate on
textwolf::IStreamIterator::IStreamIterator ( const IStreamIterator o)
inline

Copy constructor.

Parameters
[in]oiterator to copy

Member Function Documentation

char textwolf::IStreamIterator::operator* ( )
inline

Element access.

Returns
current character
IStreamIterator& textwolf::IStreamIterator::operator++ ( )
inline

Pre increment.

int textwolf::IStreamIterator::operator- ( const IStreamIterator o) const
inline
PositionIndex textwolf::IStreamIterator::position ( ) const
inline

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