|
Nemo
2.2.0
|
Template class for the trait's StatHandler. More...
#include <stathandler.h>
Inheritance diagram for TraitStatHandler< TP, SH >:
Collaboration diagram for TraitStatHandler< TP, SH >: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. | |
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.
| TraitStatHandler< TP, SH >::TraitStatHandler | ( | TP * | trait_proto | ) |
Definition at line 198 of file stathandler.h.
{
_SHLinkedTrait = trait_proto;
_SHLinkedTraitIndex = trait_proto->get_index();
}
| virtual TraitStatHandler< TP, SH >::~TraitStatHandler | ( | ) | [inline, virtual] |
Definition at line 195 of file stathandler.h.
{ }
TP* TraitStatHandler< TP, SH >::_SHLinkedTrait [protected] |
Pointer to a TraitProtoype object.
Definition at line 190 of file stathandler.h.
int TraitStatHandler< TP, SH >::_SHLinkedTraitIndex [protected] |
Index of the trait in the Individual::Traits table.
Definition at line 192 of file stathandler.h.
1.7.5.1 -- Nemo is hosted by