blocxx
Classes | Public Member Functions | Private Attributes

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.

Classes

class  proxy

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

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 56 of file IstreamBufIterator.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::IstreamBufIterator::IstreamBufIterator ( ) [inline]

Definition at line 68 of file IstreamBufIterator.hpp.

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

Definition at line 69 of file IstreamBufIterator.hpp.

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

Definition at line 70 of file IstreamBufIterator.hpp.


Member Function Documentation

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

Definition at line 102 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 71 of file IstreamBufIterator.hpp.

References m_sbuf.

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

Definition at line 91 of file IstreamBufIterator.hpp.

References m_sbuf.

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

Definition at line 82 of file IstreamBufIterator.hpp.

References m_sbuf.


Member Data Documentation

Definition at line 115 of file IstreamBufIterator.hpp.

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


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