GLIterator< T > Class Template Reference

#include <GLIterators.h>

List of all members.

Public Member Functions

 GLIterator ()
virtual ~GLIterator ()
T & operator* ()
const T & operator* () const
virtual GLIterator< T > & operator++ ()=0
virtual T & getElement ()=0
virtual const T & getElement () const =0
virtual bool isBegin () const =0
virtual bool isEnd () const =0
virtual bool isNull () const =0
virtual GLIteratormoveNext ()


Detailed Description

template<class T>
class GLIterator< T >

Iterator classes in GLibrary. Base class for moving through the organisms etc.

Definition at line 13 of file GLIterators.h.


Constructor & Destructor Documentation

template<class T>
GLIterator< T >::GLIterator (  )  [inline]

Creates new iterator.

Definition at line 19 of file GLIterators.h.

template<class T>
virtual GLIterator< T >::~GLIterator (  )  [inline, virtual]

Destroys everything.

Definition at line 24 of file GLIterators.h.


Member Function Documentation

template<class T>
virtual const T& GLIterator< T >::getElement (  )  const [pure virtual]

Method to return the pointer to the element.

Returns:
pointer to the element to which iterators points.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.

template<class T>
virtual T& GLIterator< T >::getElement (  )  [pure virtual]

Method to return the pointer to the element.

Returns:
pointer to the element to which iterators points.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.

template<class T>
virtual bool GLIterator< T >::isBegin (  )  const [pure virtual]

Returns true if iterator points to the first element in sequence.

Returns:
true if iterator points to the first element in sequence.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.

template<class T>
virtual bool GLIterator< T >::isEnd (  )  const [pure virtual]

Returns true if iterator points beyond the last element in sequence. Always true for empty sequences. If isEnd() == true the status of the pointer is undefined.

Returns:
true if iterator points beyond the last element in sequence.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.

template<class T>
virtual bool GLIterator< T >::isNull (  )  const [pure virtual]

Returns true if iterator points to NULL pointer and false otherwise.

Returns:
true if iterator points to NULL pointer and false otherwise.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.

template<class T>
virtual GLIterator* GLIterator< T >::moveNext (  )  [inline, virtual]

Moves forward along the sequence.

Returns:
the pointer to itself.

Definition at line 83 of file GLIterators.h.

template<class T>
const T& GLIterator< T >::operator* (  )  const [inline]

Operator to return the pointer to the element.

Returns:
pointer to the element to which iterators points.

Definition at line 37 of file GLIterators.h.

template<class T>
T& GLIterator< T >::operator* (  )  [inline]

Operator to return the pointer to the element.

Returns:
pointer to the element to which iterators points.

Definition at line 30 of file GLIterators.h.

template<class T>
virtual GLIterator<T>& GLIterator< T >::operator++ (  )  [pure virtual]

Operator for moving forward along the sequence. Implementation will depend on container.

Returns:
the pointer to itself.

Implemented in GLIteratorStorageStl< TStlContainer, TStlIterator, TOrganism >.


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

Generated on Sat Jun 13 13:58:10 2009 for GenLib by  doxygen 1.5.9