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

A Source adapter for a start and end input iterator pair. More...

#include "iterator_pair_source.hpp"

+ Inheritance diagram for Om::Source::IteratorPairSource< ThisItem, ThisIterator >:
+ Collaboration diagram for Om::Source::IteratorPairSource< ThisItem, ThisIterator >:

Public Member Functions

 IteratorPairSource (ThisIterator theCurrent, ThisIterator const theEnd)
 
IteratorPairSourceoperator= (IteratorPairSource)
 
virtual ThisItem & operator* () const
 
bool Equals (IteratorPairSource const &) const
 
void End ()
 
virtual bool operator! () const
 
virtual void Pop ()
 Pops the current item. More...
 
void Swap (IteratorPairSource &)
 
- Public Member Functions inherited from Om::Source::DefaultSource< ThisItem, IteratorPairSource< ThisItem, ThisIterator > >
virtual ~DefaultSource ()=0
 
IteratorPairSource< ThisItem, ThisIterator > & operator++ ()
 Pulls the next item from the Source. More...
 
IteratorPairSource< 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 (IteratorPairSource< 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 thisCurrent
 The current input iterator. More...
 
ThisIterator thisEnd
 The end 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...
 

Detailed Description

template<typename ThisItem, typename ThisIterator>
class Om::Source::IteratorPairSource< ThisItem, ThisIterator >

Definition at line 36 of file iterator_pair_source.hpp.

Constructor & Destructor Documentation

◆ IteratorPairSource()

template<typename ThisItem , typename ThisIterator >
Om::Source::IteratorPairSource< ThisItem, ThisIterator >::IteratorPairSource ( ThisIterator  theCurrent,
ThisIterator const  theEnd 
)
Parameters
theCurrentThe current input iterator.
theEndThe end input iterator.

Member Function Documentation

◆ operator=()

template<typename ThisItem , typename ThisIterator >
IteratorPairSource& Om::Source::IteratorPairSource< ThisItem, ThisIterator >::operator= ( IteratorPairSource< ThisItem, ThisIterator >  )

◆ operator*()

template<typename ThisItem , typename ThisIterator >
virtual ThisItem& Om::Source::IteratorPairSource< ThisItem, ThisIterator >::operator* ( ) const
virtual

◆ Equals()

template<typename ThisItem , typename ThisIterator >
bool Om::Source::IteratorPairSource< ThisItem, ThisIterator >::Equals ( IteratorPairSource< ThisItem, ThisIterator > const &  ) const

◆ End()

template<typename ThisItem , typename ThisIterator >
void Om::Source::IteratorPairSource< ThisItem, ThisIterator >::End ( )

◆ operator!()

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

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

◆ Pop()

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

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

◆ Swap()

template<typename ThisItem , typename ThisIterator >
void Om::Source::IteratorPairSource< ThisItem, ThisIterator >::Swap ( IteratorPairSource< ThisItem, ThisIterator > &  )

Member Data Documentation

◆ thisCurrent

template<typename ThisItem , typename ThisIterator >
ThisIterator Om::Source::IteratorPairSource< ThisItem, ThisIterator >::thisCurrent
private

Definition at line 86 of file iterator_pair_source.hpp.

◆ thisEnd

template<typename ThisItem , typename ThisIterator >
ThisIterator Om::Source::IteratorPairSource< ThisItem, ThisIterator >::thisEnd
private

Definition at line 92 of file iterator_pair_source.hpp.


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