concepts::ArrayScan< T > Class Template Reference

Scanner for an Array. More...

#include <scannerConnectors.hh>

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

Public Member Functions

 ArrayScan (Array< T > &container)
 
 ArrayScan (const ArrayScan &scan)
 
Scan< T > * clone () 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...
 

Private Attributes

Array< T > & container_
 
uint idx_
 

Detailed Description

template<class T>
class concepts::ArrayScan< T >

Scanner for an Array.

See also
Array

Definition at line 333 of file scannerConnectors.hh.

Constructor & Destructor Documentation

◆ ArrayScan() [1/2]

template<class T >
concepts::ArrayScan< T >::ArrayScan ( Array< T > &  container)
inline

Definition at line 335 of file scannerConnectors.hh.

◆ ArrayScan() [2/2]

template<class T >
concepts::ArrayScan< T >::ArrayScan ( const ArrayScan< T > &  scan)
inline

Definition at line 337 of file scannerConnectors.hh.

Member Function Documentation

◆ clone()

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

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 341 of file scannerConnectors.hh.

◆ eos()

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

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

Implements concepts::Scan< T >.

Definition at line 339 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::ArrayScan< T >::operator++ ( int  )
inlinevirtual

Returns the next element in the scanned set.

Implements concepts::Scan< T >.

Definition at line 340 of file scannerConnectors.hh.

Member Data Documentation

◆ container_

template<class T >
Array<T>& concepts::ArrayScan< T >::container_
private

Definition at line 344 of file scannerConnectors.hh.

◆ idx_

template<class T >
uint concepts::ArrayScan< T >::idx_
private

Definition at line 343 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