#include <bstream_iterator.h>
Public Member Functions | |
bistream_iterator () | |
bistream_iterator (binary_ifstream &s) | |
bool | operator!= (const bistream_iterator &rhs) |
const T & | operator* () const |
bistream_iterator & | operator++ () |
bistream_iterator & | operator++ (int) |
const T * | operator-> () const |
bool | operator== (const bistream_iterator &rhs) |
Private Member Functions | |
void | read () |
Private Attributes | |
binary_ifstream * | stream_ |
T | value_ |
Definition at line 10 of file bstream_iterator.h.
bistream_iterator< T >::bistream_iterator | ( | ) | [inline] |
Definition at line 15 of file bstream_iterator.h.
: stream_(0) {}
bistream_iterator< T >::bistream_iterator | ( | binary_ifstream & | s | ) | [inline] |
Definition at line 17 of file bstream_iterator.h.
References bistream_iterator< T >::read().
bool bistream_iterator< T >::operator!= | ( | const bistream_iterator< T > & | rhs | ) | [inline] |
Definition at line 37 of file bstream_iterator.h.
References bistream_iterator< T >::operator==().
{ return !operator==(rhs); }
const T& bistream_iterator< T >::operator* | ( | void | ) | const [inline] |
Definition at line 21 of file bstream_iterator.h.
References bistream_iterator< T >::value_.
{return value_;}
bistream_iterator& bistream_iterator< T >::operator++ | ( | int | ) | [inline] |
Definition at line 27 of file bstream_iterator.h.
References bistream_iterator< T >::read(), and tmp.
{ bistream_iterator tmp; read(); return tmp; }
bistream_iterator& bistream_iterator< T >::operator++ | ( | void | ) | [inline] |
Definition at line 25 of file bstream_iterator.h.
References bistream_iterator< T >::read().
{read(); return *this;}
const T* bistream_iterator< T >::operator-> | ( | ) | const [inline] |
Definition at line 23 of file bstream_iterator.h.
References bistream_iterator< T >::value_.
{return &value_;}
bool bistream_iterator< T >::operator== | ( | const bistream_iterator< T > & | rhs | ) | [inline] |
Definition at line 33 of file bstream_iterator.h.
References bistream_iterator< T >::stream_.
Referenced by bistream_iterator< T >::operator!=().
void bistream_iterator< T >::read | ( | ) | [inline, private] |
Definition at line 46 of file bstream_iterator.h.
References bistream_iterator< T >::stream_, and bistream_iterator< T >::value_.
Referenced by bistream_iterator< T >::bistream_iterator(), and bistream_iterator< T >::operator++().
binary_ifstream* bistream_iterator< T >::stream_ [private] |
Definition at line 43 of file bstream_iterator.h.
Referenced by bistream_iterator< T >::operator==(), and bistream_iterator< T >::read().
T bistream_iterator< T >::value_ [private] |
Definition at line 44 of file bstream_iterator.h.
Referenced by bistream_iterator< T >::operator*(), bistream_iterator< T >::operator->(), and bistream_iterator< T >::read().