Om
Public Member Functions | Private Attributes | List of all members
Om::Source::SingletonSource< ThisItem > Class Template Reference

A single item Source. More...

#include "singleton_source.hpp"

+ Inheritance diagram for Om::Source::SingletonSource< ThisItem >:
+ Collaboration diagram for Om::Source::SingletonSource< ThisItem >:

Public Member Functions

 SingletonSource ()
 
 SingletonSource (ThisItem &theItem)
 
SingletonSourceoperator= (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...
 

Detailed Description

template<typename ThisItem>
class Om::Source::SingletonSource< ThisItem >

Definition at line 33 of file singleton_source.hpp.

Constructor & Destructor Documentation

◆ SingletonSource() [1/2]

template<typename ThisItem >
Om::Source::SingletonSource< ThisItem >::SingletonSource ( )

◆ SingletonSource() [2/2]

template<typename ThisItem >
Om::Source::SingletonSource< ThisItem >::SingletonSource ( ThisItem &  theItem)
explicit
Parameters
theItemThe single item in the Source.

Member Function Documentation

◆ operator=()

template<typename ThisItem >
SingletonSource& Om::Source::SingletonSource< ThisItem >::operator= ( SingletonSource< ThisItem >  )

◆ operator!()

template<typename ThisItem >
virtual bool Om::Source::SingletonSource< ThisItem >::operator! ( ) const
virtual
Returns
True if empty.

Implements Om::Source::Source< ThisItem >.

◆ operator*()

template<typename ThisItem >
virtual ThisItem& Om::Source::SingletonSource< ThisItem >::operator* ( ) const
virtual

◆ Equals()

template<typename ThisItem >
bool Om::Source::SingletonSource< ThisItem >::Equals ( SingletonSource< ThisItem > const &  ) const

◆ Pop()

template<typename ThisItem >
virtual void Om::Source::SingletonSource< ThisItem >::Pop ( )
virtual
Precondition
Not empty.

Implements Om::Source::Source< ThisItem >.

◆ Swap()

template<typename ThisItem >
void Om::Source::SingletonSource< ThisItem >::Swap ( SingletonSource< ThisItem > &  )

Member Data Documentation

◆ thisItem

template<typename ThisItem >
ThisItem* Om::Source::SingletonSource< ThisItem >::thisItem
private

Definition at line 68 of file singleton_source.hpp.


The documentation for this class was generated from the following file: