golib  0.5
goListAlgorithm< T > Class Template Reference

Algorithm base class to run through a list. More...

#include <golist.h>

Public Member Functions

virtual bool action (typename goList< T >::Element *el)
 Action to perform on each element. Called for each element by run(). Reimplement in subclass.
 
virtual bool action (typename goList< T >::ConstElement *el) const
 Action to perform on each element. Called for each element by run(). Reimplement in subclass.
 
bool run (typename goList< T >::Element *first, typename goList< T >::Element *last)
 Calls action() for each element from first to last.
 
bool run (typename goList< T >::ConstElement *first, typename goList< T >::ConstElement *last) const
 Calls action() for each element from first to last.
 

Detailed Description

template<class T>
class goListAlgorithm< T >

Algorithm base class to run through a list.

Overload the action() methods and call run().

Author
Christian Gosch

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