Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Private Types | Private Attributes
concepts::StlVectorScan< T, ItType > Class Template Reference

Scanner working on std::vector elements. More...

#include <scannerConnectors.hh>

Inheritance diagram for concepts::StlVectorScan< T, ItType >:
Inheritance graph
[legend]
Collaboration diagram for concepts::StlVectorScan< T, ItType >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

StlVectorScanclone () const
 Returns a clone of the scanner.
bool eos () const
 Returns true if the end of the scanned set is reached.
 operator int ()
 Returns true as long as the end of the scanned set is not reached yet.
T & operator* ()
T & operator++ ()
 pre-increment operator
T & operator++ (int)
 post-increment operator
 StlVectorScan (Vector &vec)
 Constructor.
 StlVectorScan (const Vector &vec, ItType it)
 Constructor.

Private Types

typedef std::vector< T * > Vector

Private Attributes

ItType it
const Vectorvec

Detailed Description

template<class T, class ItType = typename std::vector<T*>::const_iterator>
class concepts::StlVectorScan< T, ItType >

Scanner working on std::vector elements.

ItType should be std::vector<T>::iterator or std::vector<T>::const_iterator.

Author:
Holger Brandsmeier, 2009

Definition at line 279 of file scannerConnectors.hh.


Member Typedef Documentation

template<class T , class ItType = typename std::vector<T*>::const_iterator>
typedef std::vector<T*> concepts::StlVectorScan< T, ItType >::Vector [private]

Definition at line 280 of file scannerConnectors.hh.


Constructor & Destructor Documentation

template<class T , class ItType = typename std::vector<T*>::const_iterator>
concepts::StlVectorScan< T, ItType >::StlVectorScan ( const Vector vec,
ItType  it 
) [inline]

Constructor.

Parameters:
vecthe vector to reference over, needed for checking of eof
itthe initial iterator

Definition at line 291 of file scannerConnectors.hh.

template<class T , class ItType = typename std::vector<T*>::const_iterator>
concepts::StlVectorScan< T, ItType >::StlVectorScan ( Vector vec) [inline]

Constructor.

Parameters:
vecthe vector to reference over, needed for checking of eof

Definition at line 298 of file scannerConnectors.hh.


Member Function Documentation

template<class T , class ItType = typename std::vector<T*>::const_iterator>
StlVectorScan* concepts::StlVectorScan< T, ItType >::clone ( ) const [inline, virtual]

Returns a clone of the scanner.

Implements concepts::Scan< T >.

Definition at line 304 of file scannerConnectors.hh.

Here is the call graph for this function:

template<class T , class ItType = typename std::vector<T*>::const_iterator>
bool concepts::StlVectorScan< T, ItType >::eos ( ) const [inline, virtual]

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

Implements concepts::Scan< T >.

Definition at line 302 of file scannerConnectors.hh.

template<class T>
concepts::Scan< T >::operator int ( ) [inline, inherited]

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

Definition at line 32 of file scannerConnectors.hh.

template<class T , class ItType = typename std::vector<T*>::const_iterator>
T& concepts::StlVectorScan< T, ItType >::operator* ( ) [inline]

Definition at line 306 of file scannerConnectors.hh.

template<class T , class ItType = typename std::vector<T*>::const_iterator>
T& concepts::StlVectorScan< T, ItType >::operator++ ( ) [inline]

pre-increment operator

Definition at line 318 of file scannerConnectors.hh.

template<class T , class ItType = typename std::vector<T*>::const_iterator>
T& concepts::StlVectorScan< T, ItType >::operator++ ( int  ) [inline, virtual]

post-increment operator

Implements concepts::Scan< T >.

Definition at line 311 of file scannerConnectors.hh.


Member Data Documentation

template<class T , class ItType = typename std::vector<T*>::const_iterator>
ItType concepts::StlVectorScan< T, ItType >::it [private]

Definition at line 283 of file scannerConnectors.hh.

template<class T , class ItType = typename std::vector<T*>::const_iterator>
const Vector& concepts::StlVectorScan< T, ItType >::vec [private]

Definition at line 282 of file scannerConnectors.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)