In file EO++.h:

template <class fitnessT> class EOBase

Base class for chromosomes, it's a very basic class, which does not require anything but a fitness and an ID

Inheritance:


Public Classes

class InvalidFitness: public UException
This exception should be thrown when a chromosome has not been evaluated, and thus, the fitness is not valid
InvalidFitness()
Constructor

Public Fields

typedef fitnessT EOFitT

Public Methods

EOBase( const string& _ID = "" )
Copy ctor. The fitness class must have a ctor that takes 0 as argument
EOBase( const EOBase& _eob )
Copy Ctor
virtual fitnessT fitness()
Fitness things: reads fitness
virtual void fitness( fitnessT _fitness )
Fitness things: writes fitness and sets the validFitness flag to true
const string& ID()
read the ID, which is supposed to be an unique identification for each chromosome
void ID( const string& _id )
Write ID
const EOBase& operator= ( const EOBase& _eob )
Assignment operator
virtual ~EOBase()

Documentation

Base class for chromosomes, it's a very basic class, which does not require anything but a fitness and an ID
typedef fitnessT EOFitT

EOBase( const string& _ID = "" )
Copy ctor. The fitness class must have a ctor that takes 0 as argument

EOBase( const EOBase& _eob )
Copy Ctor

const EOBase& operator= ( const EOBase& _eob )
Assignment operator

virtual ~EOBase()

class InvalidFitness: public UException
This exception should be thrown when a chromosome has not been evaluated, and thus, the fitness is not valid

InvalidFitness()
Constructor

virtual fitnessT fitness()
Fitness things: reads fitness
Throws:
InvalidFitness if fitness has not been evaluated

virtual void fitness( fitnessT _fitness )
Fitness things: writes fitness and sets the validFitness flag to true. Passed by value, so the fitness must have a copy ctor
Parameters:
_fitness - new value of the fitness

const string& ID()
read the ID, which is supposed to be an unique identification for each chromosome. It should be set only at birth

void ID( const string& _id )
Write ID


Direct child classes:
EOBidim
EO
Author:
Geneura Team

alphabetic index hierarchy of classes


BinOp