added eoFuncPtrStat, and appended various addTo member functions for more elegant definition of monitors, stats, checkpoints, etc
This commit is contained in:
parent
d78387591b
commit
cb85c19259
6 changed files with 58 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
|||
Contact: todos@geneura.ugr.es, http://geneura.ugr.es
|
||||
Marc.Schoenauer@polytechnique.fr
|
||||
mak@dhi.dk
|
||||
CVS Info: $Date: 2004-06-15 07:09:57 $ $Header: /home/nojhan/dev/eodev/eodev_cvs/eo/src/utils/eoMonitor.h,v 1.11 2004-06-15 07:09:57 evomarc Exp $ $Author: evomarc $
|
||||
CVS Info: $Date: 2007-09-05 11:36:44 $ $Header: /home/nojhan/dev/eodev/eodev_cvs/eo/src/utils/eoMonitor.h,v 1.12 2007-09-05 11:36:44 maartenkeijzer Exp $ $Author: maartenkeijzer $
|
||||
|
||||
*/
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
@ -35,6 +35,7 @@ CVS Info: $Date: 2004-06-15 07:09:57 $ $Header: /home/nojhan/dev/eodev/eodev_cvs
|
|||
#include <eoFunctor.h>
|
||||
|
||||
class eoParam;
|
||||
template <class EOT> class eoCheckPoint;
|
||||
|
||||
/**
|
||||
The abstract monitor class is a std::vector of parameter pointers. Use
|
||||
|
|
@ -57,6 +58,9 @@ public :
|
|||
|
||||
virtual std::string className(void) const { return "eoMonitor"; }
|
||||
|
||||
template <class EOT>
|
||||
eoMonitor& addTo(eoCheckPoint<EOT>& cp) { cp.add(*this); return *this; }
|
||||
|
||||
protected :
|
||||
typedef std::vector<const eoParam*>::iterator iterator;
|
||||
std::vector<const eoParam*> vec;
|
||||
|
|
|
|||
Reference in a new issue