Nemo
2.3.56
Simulate forward-in-time genetic evolution in a spatially explicit, individual-based stochastic simulator
|
Template class for the LCEs StatHandler classes. More...
#include <stathandler.h>
Public Member Functions | |
EventStatHandler (LCE *lce) | |
virtual | ~EventStatHandler () |
![]() | |
StatHandler () | |
virtual | ~StatHandler () |
virtual void | clear () |
Empties the _recorders list, they are destroyed in StatHandlerBase::reset(). More... | |
virtual StatRecorder< SH > * | add (std::string Title, std::string Name, age_t AGE, unsigned int ARG1, unsigned int ARG2, double(SH::*getStatNoArg)(void), double(SH::*getStatOneArg)(unsigned int), double(SH::*getStatTwoArg)(unsigned int, unsigned int), void(SH::*setStat)(void)) |
Adds a StatRecorder to the list, it is also added to the StatHandlerBase::_stats list. More... | |
![]() | |
StatHandlerBase () | |
virtual | ~StatHandlerBase () |
virtual void | reset () |
Empties the _stats list and calls clear() (defined in the derived class). More... | |
Metapop * | get_pop_ptr () |
void | set_service (StatServices *srv) |
StatServices * | get_service () |
unsigned int | getOccurrence () |
unsigned int | getNumOccurrences () |
unsigned int | getCurrentOccurrence () |
unsigned int | getNbRecorders () |
std::list< StatRecBase * > & | getStats () |
virtual void | add (StatRecBase *rec) |
virtual void | init () |
virtual void | update () |
This function is left empty as the StatServices calls StatRecorder::setVal directly. More... | |
virtual bool | setStatRecorders (std::string &token)=0 |
![]() | |
virtual void | init ()=0 |
Inits state. More... | |
virtual void | update ()=0 |
Updates the handler state. More... | |
virtual | ~Handler () |
Protected Attributes | |
LCE * | _SHLinkedEvent |
Pointer to the linked LCE. More... | |
![]() | |
std::list< StatRecorder< SH > * > | _recorders |
The list of stat recorders. More... | |
![]() | |
Metapop * | _pop |
Link to the current population, set through the link to the StatService. More... | |
Additional Inherited Members | |
![]() | |
typedef std::list< StatRecorder< SH > * >::iterator | REC_IT |
Template class for the LCEs StatHandler classes.
Constructor links to a give LCE. The LCE can be accessed through the _SHLinkedEvent member to get the stats.
EventStatHandler< LCE, SH >::EventStatHandler | ( | LCE * | lce | ) |
|
inlinevirtual |
|
protected |
Pointer to the linked LCE.