Vita
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vita::individual< Derived > Class Template Reference

A single member of a population. More...

#include <individual.h>

Public Member Functions

unsigned age () const
 
void inc_age ()
 
bool load (std::istream &, const symbol_set &=symbol_set())
 
bool save (std::ostream &) const
 

Protected Member Functions

void set_older_age (unsigned)
 

Protected Attributes

hash_t signature_
 

Detailed Description

template<class Derived>
class vita::individual< Derived >

A single member of a population.

Template Parameters
Derivedthe derived class in the CRTP

Each individual contains a genome which represents a possible solution to the task being tackled (i.e. a point in the search space).

This class is the (nondependent CRTP) base class of every type of individual and factorizes out common code / data members.

Note
AKA chromosome.

Definition at line 40 of file individual.h.

Member Data Documentation

◆ signature_

template<class Derived >
hash_t vita::individual< Derived >::signature_
mutableprotected

Definition at line 61 of file individual.h.


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