istreambuf_iterator Class Reference

class istreambuf_iterator : public iterator< input_iterator_tag, _CharT, _Traits::off_type, _CharT *, _CharT & >
Public Member Functions
istreambuf_iterator ( streambuf_type *)
istreambuf_iterator ( basic_istream < _CharT, _Traits > &)
bool equal (const istreambuf_iterator < _CharT, _Traits > &)
char_type operator* ()
istreambuf_iterator < _CharT, _Traits > & operator++ ()
istreambuf_iterator < _CharT, _Traits > operator++ (int)
Private Member Functions
void _M_getc ()
void _M_init ( streambuf_type *)
Public Member Type Definitions
typedef _CharT char_type
typedef _Traits::off_type difference_type
typedef _Traits::int_type int_type
typedef basic_istream < _CharT, _Traits > istream_type
typedef input_iterator_tag iterator_category
typedef const _CharT * pointer
typedef const _CharT & reference
typedef basic_streambuf < _CharT, _Traits > streambuf_type
typedef _Traits traits_type
typedef _CharT value_type
Private Attributes
streambuf_type * _M_buf
_CharT _M_c
bool _M_eof
bool _M_have_c

Constructor & Destructor Documentation

istreambuf_iterator(streambuf_type *)

istreambuf_iterator ( streambuf_type * __p = 0 ) [inline]

Parameters

streambuf_type * __p = 0

istreambuf_iterator(basic_istream< _CharT, _Traits > &)

istreambuf_iterator ( basic_istream < _CharT, _Traits > & __is ) [inline]

Parameters

basic_istream < _CharT, _Traits > & __is

Member Functions Documentation

_M_getc()

void _M_getc ( ) const [private, inline]

_M_init(streambuf_type *)

void _M_init ( streambuf_type * __p ) [private, inline]

Parameters

streambuf_type * __p

equal(const istreambuf_iterator< _CharT, _Traits > &)

bool equal ( const istreambuf_iterator < _CharT, _Traits > & __i ) const [inline]

Parameters

const istreambuf_iterator < _CharT, _Traits > & __i

operator*()

char_type operator* ( ) const [inline]

operator++()

istreambuf_iterator < _CharT, _Traits > & operator++ ( ) [inline]

operator++(int)

istreambuf_iterator < _CharT, _Traits > operator++ ( int )

Parameters

int

Member Type Definitions Documentation

Typedef char_type

typedef _CharT char_type

Typedef difference_type

typedef _Traits::off_type difference_type

Typedef int_type

typedef _Traits::int_type int_type

Typedef istream_type

typedef basic_istream < _CharT, _Traits > istream_type

Typedef iterator_category

typedef input_iterator_tag iterator_category

Typedef pointer

typedef const _CharT * pointer

Typedef reference

typedef const _CharT & reference

Typedef streambuf_type

typedef basic_streambuf < _CharT, _Traits > streambuf_type

Typedef traits_type

typedef _Traits traits_type

Typedef value_type

typedef _CharT value_type

Member Data Documentation

streambuf_type * _M_buf

streambuf_type * _M_buf [private]

_CharT _M_c

_CharT _M_c [private]

bool _M_eof

bool _M_eof [private]

bool _M_have_c

bool _M_have_c [private]