concepts::PStlVectorScan< T > Class Template Reference

Scanner for a STL container std::vector of pointers. More...

#include <scannerConnectors.hh>

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

Public Member Functions

PStlVectorScan< 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...
 
 PStlVectorScan (const PStlVectorScan< T > &scan)
 
 PStlVectorScan (typename std::vector< T * > &v)
 
 PStlVectorScan (typename std::vector< T * >::iterator first, typename std::vector< T * >::const_iterator last)
 

Private Attributes

std::vector< T * >::iterator i_
 
std::vector< T * >::const_iterator last_
 

Detailed Description

template<class T>
class concepts::PStlVectorScan< T >

Scanner for a STL container std::vector of pointers.

Definition at line 257 of file scannerConnectors.hh.

Constructor & Destructor Documentation

◆ PStlVectorScan() [1/3]

template<class T >
concepts::PStlVectorScan< T >::PStlVectorScan ( typename std::vector< T * > &  v)
inline

Definition at line 259 of file scannerConnectors.hh.

◆ PStlVectorScan() [2/3]

template<class T >
concepts::PStlVectorScan< T >::PStlVectorScan ( typename std::vector< T * >::iterator  first,
typename std::vector< T * >::const_iterator  last 
)
inline

Definition at line 261 of file scannerConnectors.hh.

◆ PStlVectorScan() [3/3]

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

Definition at line 264 of file scannerConnectors.hh.

Member Function Documentation

◆ clone()

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

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 268 of file scannerConnectors.hh.

◆ eos()

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

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

Implements concepts::Scan< T >.

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

Returns the next element in the scanned set.

Implements concepts::Scan< T >.

Definition at line 267 of file scannerConnectors.hh.

Member Data Documentation

◆ i_

template<class T >
std::vector<T*>::iterator concepts::PStlVectorScan< T >::i_
private

Definition at line 270 of file scannerConnectors.hh.

◆ last_

template<class T >
std::vector<T*>::const_iterator concepts::PStlVectorScan< T >::last_
private

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