In file EO++.h:

template <class T, class fitnessT> class EOVector : public EO<T, fitnessT>, public vector<T>

Adaptor that turns an STL vector into an EO with the same gene type as the type with which the vector has been instantiated

Inheritance:


Public Methods

virtual void deleteGene( unsigned _i )
Eliminates the gene at position _i
EOVector( const string& _ID = "", unsigned _size = 0, const T _val = 0)
ctor. Follows convention that ID should be first
EOVector( const EOVector & _eo )
copy ctor
virtual void insertGene( unsigned _i, T _val )
methods that implement the EO <em>protocol</em>
virtual unsigned length()
methods that implement the EO <em>protocol</em>
const EOVector& operator =( const EOVector & _eo )
Assignment operator
virtual void printSelf( ostream& _s )
virtual T readGene( unsigned _i )
methods that implement the EO <em>protocol</em>
virtual void writeGene( unsigned _i, T _val )
methods that implement the EO <em>protocol</em>
virtual ~EOVector()
dtor

Inherited from EO:

Public Fields

typedef T EOType

Public Methods

const EO& operator= ( const EO& _eo )

Inherited from EOBase:

Public Classes

class InvalidFitness: public UException
InvalidFitness()
Constructor

Public Fields

typedef fitnessT EOFitT

Public Methods

virtual fitnessT fitness()
virtual void fitness( fitnessT _fitness )
const string& ID()
void ID( const string& _id )

Documentation

Adaptor that turns an STL vector into an EO with the same gene type as the type with which the vector has been instantiated
EOVector( const string& _ID = "", unsigned _size = 0, const T _val = 0)
ctor. Follows convention that ID should be first

EOVector( const EOVector & _eo )
copy ctor

const EOVector& operator =( const EOVector & _eo )
Assignment operator

virtual ~EOVector()
dtor

virtual T readGene( unsigned _i )
methods that implement the EO <em>protocol</em>
Throws:
out_of_range if _i is larger than EOs size

virtual void writeGene( unsigned _i, T _val )
methods that implement the EO <em>protocol</em>
Throws:
out_of_range if _i is larger than EOs size

virtual void insertGene( unsigned _i, T _val )
methods that implement the EO <em>protocol</em>
Throws:
out_of_range if _i is larger than EOs size

virtual void deleteGene( unsigned _i )
Eliminates the gene at position _i
Throws:
out_of_range if _i is larger than EOs size

virtual unsigned length()
methods that implement the EO <em>protocol</em>

virtual void printSelf( ostream& _s )


Direct child classes:
EOESChrom

alphabetic index hierarchy of classes


BinOp