|
Om
|
A Source adapter for an input stream. More...
#include "stream_source.hpp"
Inheritance diagram for Om::Source::StreamSource< ThisItem >:
Collaboration diagram for Om::Source::StreamSource< ThisItem >:Public Member Functions | |
| StreamSource () | |
| StreamSource (std::istream &) | |
| StreamSource & | operator= (StreamSource) |
| virtual bool | operator! () const |
| virtual ThisItem const & | operator* () const |
| bool | Equals (StreamSource const &) const |
| virtual void | Pop () |
| Pops the current item. More... | |
| void | Swap (StreamSource &) |
Public Member Functions inherited from Om::Source::DefaultSource< char const, StreamSource< char > > | |
| virtual | ~DefaultSource ()=0 |
| StreamSource< char > & | operator++ () |
| Pulls the next item from the Source. More... | |
| StreamSource< char > | operator++ (int) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
| virtual bool | Equals (Source< char const > const &) const |
| bool | Equals (StreamSource< char > const &) const |
Public Member Functions inherited from Om::Source::Source< ThisItem > | |
| virtual | ~Source ()=0 |
| ThisItem * | operator-> () const |
| operator Boolean () const | |
| Implements the Safe Boolean idiom. More... | |
| virtual bool | Equals (Source const &) const =0 |
Private Types | |
| typedef std::istreambuf_iterator< ThisItem > | StreamIterator |
Private Attributes | |
| StreamIterator | thisStreamIterator |
| boost::optional< ThisItem > | thisItem |
| The current item. More... | |
Additional Inherited Members | |
Public Types inherited from Om::Source::Source< ThisItem > | |
| typedef void(Source::* | Boolean) () const |
| The implementation of the Safe Boolean idiom. More... | |
Definition at line 43 of file stream_source.hpp.
|
private |
Definition at line 74 of file stream_source.hpp.
| Om::Source::StreamSource< ThisItem >::StreamSource | ( | ) |
|
explicit |
| StreamSource& Om::Source::StreamSource< ThisItem >::operator= | ( | StreamSource< ThisItem > | ) |
|
virtual |
Implements Om::Source::Source< ThisItem >.
|
virtual |
Implements Om::Source::Source< ThisItem >.
| bool Om::Source::StreamSource< ThisItem >::Equals | ( | StreamSource< ThisItem > const & | ) | const |
|
virtual |
Implements Om::Source::Source< ThisItem >.
| void Om::Source::StreamSource< ThisItem >::Swap | ( | StreamSource< ThisItem > & | ) |
|
private |
Definition at line 78 of file stream_source.hpp.
|
mutableprivate |
Definition at line 84 of file stream_source.hpp.