|
Om
|
A Source adapter for a sentinal-terminated input iterator. More...
#include "iterator_source.hpp"
Inheritance diagram for Om::Source::IteratorSource< ThisItem, ThisIterator >:
Collaboration diagram for Om::Source::IteratorSource< ThisItem, ThisIterator >:Public Member Functions | |
| IteratorSource (ThisIterator const theIterator) | |
| IteratorSource & | operator= (IteratorSource) |
| virtual bool | operator! () const |
| virtual ThisItem & | operator* () const |
| bool | Equals (IteratorSource const &) const |
| virtual void | Pop () |
| Pops the current item. More... | |
| void | Swap (IteratorSource &) |
Public Member Functions inherited from Om::Source::DefaultSource< ThisItem, IteratorSource< ThisItem, ThisIterator > > | |
| virtual | ~DefaultSource ()=0 |
| IteratorSource< ThisItem, ThisIterator > & | operator++ () |
| Pulls the next item from the Source. More... | |
| IteratorSource< ThisItem, ThisIterator > | 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< ThisItem > const &) const |
| bool | Equals (IteratorSource< ThisItem, ThisIterator > 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... | |
Private Attributes | |
| ThisIterator | thisIterator |
| The input iterator. 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... | |
| ThisItem | The item type, which must implement the ! operator such that it only returns true for the sentinal. |
| ThisIterator | The iterator type. |
Definition at line 40 of file iterator_source.hpp.
|
explicit |
| theIterator | The input iterator, dereferencable to a valid item. |
| IteratorSource& Om::Source::IteratorSource< ThisItem, ThisIterator >::operator= | ( | IteratorSource< ThisItem, ThisIterator > | ) |
|
virtual |
Implements Om::Source::Source< ThisItem >.
|
virtual |
Implements Om::Source::Source< ThisItem >.
| bool Om::Source::IteratorSource< ThisItem, ThisIterator >::Equals | ( | IteratorSource< ThisItem, ThisIterator > const & | ) | const |
|
virtual |
Implements Om::Source::Source< ThisItem >.
| void Om::Source::IteratorSource< ThisItem, ThisIterator >::Swap | ( | IteratorSource< ThisItem, ThisIterator > & | ) |
|
private |
Definition at line 83 of file iterator_source.hpp.