Om
|
#include "singleton_source.hpp"
Public Member Functions | |
SingletonSource () | |
SingletonSource (ThisItem &theItem) | |
SingletonSource & | operator= (SingletonSource) |
virtual bool | operator! () const |
virtual ThisItem & | operator* () const |
bool | Equals (SingletonSource const &) const |
virtual void | Pop () |
Pops the current item. More... | |
void | Swap (SingletonSource &) |
Public Member Functions inherited from Om::Source::DefaultSource< ThisItem, SingletonSource< ThisItem > > | |
virtual | ~DefaultSource ()=0 |
SingletonSource< ThisItem > & | operator++ () |
Pulls the next item from the Source. More... | |
SingletonSource< ThisItem > | 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 (SingletonSource< ThisItem > 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 | |
ThisItem * | thisItem |
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 33 of file singleton_source.hpp.
Om::Source::SingletonSource< ThisItem >::SingletonSource | ( | ) |
|
explicit |
theItem | The single item in the Source. |
SingletonSource& Om::Source::SingletonSource< ThisItem >::operator= | ( | SingletonSource< ThisItem > | ) |
|
virtual |
Implements Om::Source::Source< ThisItem >.
|
virtual |
Implements Om::Source::Source< ThisItem >.
bool Om::Source::SingletonSource< ThisItem >::Equals | ( | SingletonSource< ThisItem > const & | ) | const |
|
virtual |
Implements Om::Source::Source< ThisItem >.
void Om::Source::SingletonSource< ThisItem >::Swap | ( | SingletonSource< ThisItem > & | ) |
|
private |
Definition at line 68 of file singleton_source.hpp.