edoPopStat< EOT > Class Template Reference

Thanks to MS/VC++, eoParam mechanism is unable to handle std::vectors of stats. More...

#include <edoPopStat.h>

List of all members.

Public Member Functions

 edoPopStat (std::string _desc="")
 default Ctor, void std::string by default, as it appears on the description line once at beginning of evolution.
void operator() (const eoPop< EOT > &_pop)
 Fills the value() of the eoParam with the dump of the population.

Detailed Description

template<class EOT>
class edoPopStat< EOT >

Thanks to MS/VC++, eoParam mechanism is unable to handle std::vectors of stats.

This snippet is a workaround: This class will "print" a whole population into a std::string - that you can later send to any stream This is the plain version - see eoPopString for the Sorted version

Note: this Stat should probably be used only within eoStdOutMonitor, and not inside an eoFileMonitor, as the eoState construct will work much better there.

Definition at line 48 of file edoPopStat.h.


Constructor & Destructor Documentation

template<class EOT>
edoPopStat< EOT >::edoPopStat ( std::string  _desc = "") [inline]

default Ctor, void std::string by default, as it appears on the description line once at beginning of evolution.

and is meaningless there. _howMany defaults to 0, that is, the whole population

Definition at line 58 of file edoPopStat.h.


Member Function Documentation

template<class EOT>
void edoPopStat< EOT >::operator() ( const eoPop< EOT > &  _pop) [inline]

Fills the value() of the eoParam with the dump of the population.

Definition at line 62 of file edoPopStat.h.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Typedefs