Nemo  2.2.0
Public Member Functions | Protected Attributes
TraitStatHandler< TP, SH > Class Template Reference

Template class for the trait's StatHandler. More...

#include <stathandler.h>

+ Inheritance diagram for TraitStatHandler< TP, SH >:
+ Collaboration diagram for TraitStatHandler< TP, SH >:

List of all members.

Public Member Functions

 TraitStatHandler (TP *trait_proto)
virtual ~TraitStatHandler ()

Protected Attributes

TP * _SHLinkedTrait
 Pointer to a TraitProtoype object.
int _SHLinkedTraitIndex
 Index of the trait in the Individual::Traits table.

Detailed Description

template<class TP, class SH>
class TraitStatHandler< TP, SH >

Template class for the trait's StatHandler.

Constructor links to a given trait prototype. The pointer and index of the trait prototype are stored in the class. They can be accessd through the _SHLinkedTrait and _SHLinkedTraitIndex members to get the stats.

Definition at line 187 of file stathandler.h.


Constructor & Destructor Documentation

template<class TP, class SH >
TraitStatHandler< TP, SH >::TraitStatHandler ( TP *  trait_proto)

Definition at line 198 of file stathandler.h.

{
  _SHLinkedTrait = trait_proto;
  _SHLinkedTraitIndex = trait_proto->get_index();
}
template<class TP, class SH>
virtual TraitStatHandler< TP, SH >::~TraitStatHandler ( ) [inline, virtual]

Definition at line 195 of file stathandler.h.

{ }

Member Data Documentation

template<class TP, class SH>
TP* TraitStatHandler< TP, SH >::_SHLinkedTrait [protected]

Pointer to a TraitProtoype object.

Definition at line 190 of file stathandler.h.

template<class TP, class SH>
int TraitStatHandler< TP, SH >::_SHLinkedTraitIndex [protected]

Index of the trait in the Individual::Traits table.

Definition at line 192 of file stathandler.h.


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

Generated for Nemo v2.2.0 by  doxygen 1.7.5.1 -- Nemo is hosted by  SourceForge.net Logo