Om
Public Member Functions | Static Public Member Functions | List of all members
Om::Source::EmptySource< ThisItem > Class Template Reference

An empty Source. More...

#include "empty_source.hpp"

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

Public Member Functions

 EmptySource ()
 
EmptySourceoperator= (EmptySource)
 
virtual bool operator! () const
 
virtual ThisItem & operator* () const
 
bool Equals (EmptySource const &) const
 
virtual void Pop ()
 Pops the current item. More...
 
void Swap (EmptySource &)
 
- Public Member Functions inherited from Om::Source::DefaultSource< ThisItem, EmptySource< ThisItem > >
virtual ~DefaultSource ()=0
 
EmptySource< ThisItem > & operator++ ()
 Pulls the next item from the Source. More...
 
EmptySource< 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 (EmptySource< 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...
 

Static Public Member Functions

static EmptySourceGet ()
 

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::EmptySource< ThisItem >

Definition at line 33 of file empty_source.hpp.

Constructor & Destructor Documentation

◆ EmptySource()

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

Member Function Documentation

◆ Get()

template<typename ThisItem >
static EmptySource& Om::Source::EmptySource< ThisItem >::Get ( )
static

◆ operator=()

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

◆ operator!()

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

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

◆ operator*()

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

◆ Equals()

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

◆ Pop()

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

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

◆ Swap()

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

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