concepts::SingletonScan< T > Class Template Reference

A scanner over a single element. More...

#include <scannerConnectors.hh>

Inheritance diagram for concepts::SingletonScan< T >:
concepts::Scan< T >

Public Member Functions

SingletonScanclone () const
 Returns a clone of the scanner. More...
 
bool eos () const
 Returns true if the end of the scanned set is reached. More...
 
 operator int ()
 Returns true as long as the end of the scanned set is not reached yet. More...
 
T & operator++ (int)
 Returns the next element in the scanned set. More...
 
 SingletonScan (const SingletonScan &other)
 
 SingletonScan (T &singleton)
 

Private Attributes

bool eos_
 
T & singleton_
 

Detailed Description

template<class T>
class concepts::SingletonScan< T >

A scanner over a single element.

Definition at line 352 of file scannerConnectors.hh.

Constructor & Destructor Documentation

◆ SingletonScan() [1/2]

template<class T >
concepts::SingletonScan< T >::SingletonScan ( T &  singleton)
inline

Definition at line 354 of file scannerConnectors.hh.

◆ SingletonScan() [2/2]

template<class T >
concepts::SingletonScan< T >::SingletonScan ( const SingletonScan< T > &  other)
inline

Definition at line 357 of file scannerConnectors.hh.

Member Function Documentation

◆ clone()

template<class T >
SingletonScan* concepts::SingletonScan< T >::clone ( ) const
inlinevirtual

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 368 of file scannerConnectors.hh.

◆ eos()

template<class T >
bool concepts::SingletonScan< T >::eos ( ) const
inlinevirtual

Returns true if the end of the scanned set is reached.

Implements concepts::Scan< T >.

Definition at line 360 of file scannerConnectors.hh.

◆ operator int()

template<class T >
concepts::Scan< T >::operator int ( )
inlineinherited

Returns true as long as the end of the scanned set is not reached yet.

Definition at line 34 of file scannerConnectors.hh.

◆ operator++()

template<class T >
T& concepts::SingletonScan< T >::operator++ ( int  )
inlinevirtual

Returns the next element in the scanned set.

Implements concepts::Scan< T >.

Definition at line 362 of file scannerConnectors.hh.

Member Data Documentation

◆ eos_

template<class T >
bool concepts::SingletonScan< T >::eos_
private

Definition at line 374 of file scannerConnectors.hh.

◆ singleton_

template<class T >
T& concepts::SingletonScan< T >::singleton_
private

Definition at line 373 of file scannerConnectors.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich