concepts::PListScan< T > Class Template Reference

Scanner for a list of pointers. More...

#include <scannerConnectors.hh>

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

Public Member Functions

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

Scanner for a list of pointers.

Definition at line 176 of file scannerConnectors.hh.

Constructor & Destructor Documentation

◆ PListScan()

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

Constructor.

Parameters
cnrReference to the list

Definition at line 189 of file scannerConnectors.hh.

Member Function Documentation

◆ clone()

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

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 194 of file scannerConnectors.hh.

◆ eos()

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

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

Implements concepts::Scan< T >.

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

Returns the next element in the scanned set.

Implements concepts::Scan< T >.

Definition at line 200 of file scannerConnectors.hh.

Member Data Documentation

◆ current_

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

Pointer to the current element.

Definition at line 181 of file scannerConnectors.hh.

◆ eos_

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

Is true if the end of the list is reached.

Definition at line 184 of file scannerConnectors.hh.

◆ head_

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

Pointer to the head of the list.

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