concepts::ListScan< T > Class Template Reference

Scanner for a list. More...

#include <scannerConnectors.hh>

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

Public Member Functions

ListScan< 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...
 
 ListScan (Joiner< T, 1 > &cnr)
 Constructor. 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

Joiner< T, 1 > * current_
 Pointer to the current element. More...
 
bool eos_
 Is true if the end of the list is reached. More...
 
Joiner< T, 1 > * head_
 Pointer to the head of the list. More...
 

Detailed Description

template<class T>
class concepts::ListScan< T >

Scanner for a list.

Definition at line 216 of file scannerConnectors.hh.

Constructor & Destructor Documentation

◆ ListScan()

template<class T >
concepts::ListScan< T >::ListScan ( Joiner< T, 1 > &  cnr)
inline

Constructor.

Parameters
cnrReference to the list

Definition at line 229 of file scannerConnectors.hh.

Member Function Documentation

◆ clone()

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

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 234 of file scannerConnectors.hh.

◆ eos()

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

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

Implements concepts::Scan< T >.

Definition at line 232 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::ListScan< T >::operator++ ( int  )
virtual

Returns the next element in the scanned set.

Implements concepts::Scan< T >.

Definition at line 240 of file scannerConnectors.hh.

Member Data Documentation

◆ current_

template<class T >
Joiner<T, 1>* concepts::ListScan< T >::current_
private

Pointer to the current element.

Definition at line 221 of file scannerConnectors.hh.

◆ eos_

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

Is true if the end of the list is reached.

Definition at line 224 of file scannerConnectors.hh.

◆ head_

template<class T >
Joiner<T, 1>* concepts::ListScan< T >::head_
private

Pointer to the head of the list.

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