blocxx
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>

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

◆ IstreamBufIterator() [1/3]

BLOCXX_NAMESPACE::IstreamBufIterator::IstreamBufIterator ( )
inline

Definition at line 68 of file IstreamBufIterator.hpp.

References m_sbuf.

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

◆ IstreamBufIterator() [2/3]

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

Definition at line 69 of file IstreamBufIterator.hpp.

References m_sbuf.

◆ IstreamBufIterator() [3/3]

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

Definition at line 70 of file IstreamBufIterator.hpp.

References m_sbuf.

Member Function Documentation

◆ equal()

bool BLOCXX_NAMESPACE::IstreamBufIterator::equal ( const IstreamBufIterator & b) const
inline

◆ operator*()

char BLOCXX_NAMESPACE::IstreamBufIterator::operator* ( ) const
inline

Definition at line 71 of file IstreamBufIterator.hpp.

References m_sbuf.

◆ operator++() [1/2]

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

Definition at line 82 of file IstreamBufIterator.hpp.

References IstreamBufIterator(), and m_sbuf.

◆ operator++() [2/2]

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

Definition at line 91 of file IstreamBufIterator.hpp.

References m_sbuf.

Member Data Documentation

◆ m_sbuf

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

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