gatb.core-API-0.0.0
STLIterator< Container, Type > Class Template Reference

TO BE DONE... More...

#include <IteratorHelpers.hpp>

Inheritance diagram for STLIterator< Container, Type >:
Inheritance graph

Public Member Functions

 STLIterator (const Container &l)
 
virtual ~STLIterator ()
 
void first ()
 
void next ()
 
bool isDone ()
 
Type & item ()
 
- Public Member Functions inherited from Iterator< Type >
Type * operator-> ()
 
Type & operator* ()
 
void iterate (const Functor &f)
 
virtual void setItem (Type &i)
 
bool get (std::vector< Type > &current)
 
virtual void reset ()
 
virtual void finalize ()
 
virtual std::vector< Iterator< Type > * > getComposition ()
 
- Public Member Functions inherited from SmartPointer
void use ()
 
void forget ()
 
- Public Member Functions inherited from ISmartPointer
virtual ~ISmartPointer ()
 

Additional Inherited Members

- Protected Member Functions inherited from SmartPointer
 SmartPointer ()
 
virtual ~SmartPointer ()
 

Detailed Description

template<class Container, typename Type>
class gatb::core::tools::dp::impl::STLIterator< Container, Type >

TO BE DONE...

Constructor & Destructor Documentation

STLIterator ( const Container &  l)
inline

Constructor.

Parameters
[in]l: the list to be iterated
virtual ~STLIterator ( )
inlinevirtual

Destructor (here because of virtual methods).

Member Function Documentation

void first ( )
inlinevirtual

Method that initializes the iteration.

Implements Iterator< Type >.

bool isDone ( )
inlinevirtual

Method telling whether the iteration is finished or not.

Returns
true if iteration is finished, false otherwise.

Implements Iterator< Type >.

Type& item ( )
inlinevirtual

Method that returns the current iterated item. Note that the returned type is the template type.

Returns
the current item in the iteration.

Implements Iterator< Type >.

void next ( )
inlinevirtual

Method that goes to the next item in the iteration.

Returns
status of the iteration

Implements Iterator< Type >.


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