BLOCXX_NAMESPACE::IstreamBufIterator Class Reference

This class differs from a std::istreambuf_iterator in that dereferncing an eof iterator returns 0 This class is mostly just a replacement for std::istreambuf_iterator<>, since it doesn't exist in the gcc 2.95.x standard lib. More...

#include <IstreamBufIterator.hpp>

List of all members.

Public Member Functions

 IstreamBufIterator ()
 IstreamBufIterator (std::istream &s)
 IstreamBufIterator (std::streambuf *b)
char operator * () const
IstreamBufIteratoroperator++ ()
proxy operator++ (int)
bool equal (const IstreamBufIterator &b) const

Private Attributes

std::streambuf * m_sbuf

Classes

class  proxy


Detailed Description

This class differs from a std::istreambuf_iterator in that dereferncing an eof iterator returns 0 This class is mostly just a replacement for std::istreambuf_iterator<>, since it doesn't exist in the gcc 2.95.x standard lib.

We also added/removed some features to make it more efficient.

Definition at line 55 of file IstreamBufIterator.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::IstreamBufIterator::IstreamBufIterator  )  [inline]
 

Definition at line 67 of file IstreamBufIterator.hpp.

BLOCXX_NAMESPACE::IstreamBufIterator::IstreamBufIterator std::istream &  s  )  [inline]
 

Definition at line 68 of file IstreamBufIterator.hpp.

BLOCXX_NAMESPACE::IstreamBufIterator::IstreamBufIterator std::streambuf *  b  )  [inline]
 

Definition at line 69 of file IstreamBufIterator.hpp.


Member Function Documentation

bool BLOCXX_NAMESPACE::IstreamBufIterator::equal const IstreamBufIterator b  )  const [inline]
 

Definition at line 101 of file IstreamBufIterator.hpp.

References m_sbuf.

Referenced by BLOCXX_NAMESPACE::operator!=(), and BLOCXX_NAMESPACE::operator==().

char BLOCXX_NAMESPACE::IstreamBufIterator::operator *  )  const [inline]
 

Definition at line 70 of file IstreamBufIterator.hpp.

References m_sbuf.

proxy BLOCXX_NAMESPACE::IstreamBufIterator::operator++ int   )  [inline]
 

Definition at line 90 of file IstreamBufIterator.hpp.

IstreamBufIterator& BLOCXX_NAMESPACE::IstreamBufIterator::operator++  )  [inline]
 

Definition at line 81 of file IstreamBufIterator.hpp.

References m_sbuf.


Member Data Documentation

std::streambuf* BLOCXX_NAMESPACE::IstreamBufIterator::m_sbuf [private]
 

Definition at line 114 of file IstreamBufIterator.hpp.

Referenced by equal(), operator *(), and operator++().


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 15:39:11 2006 for blocxx by  doxygen 1.4.6