In file EO++.h:

template <class fitnessT > class EOString : public EO<char, fitnessT>, public string

Adaptor that turns an STL string into an EO

Inheritance:


Public Methods

virtual void deleteGene( unsigned _i )
Eliminates the gene at position _i
EOString( const string& _str ="", const string& _ID = "", fitnessT _fit = 0 )
ctor
EOString( const EOString<fitnessT>& _eoStr )
copy ctor
virtual void insertGene( unsigned _i, char _val )
Inserts a value after _i, displacing anything to the right
virtual unsigned length()
methods that implement the EO <em>protocol</em>
const EOString& operator =( const EOString& _eoStr )
Assignment operator
virtual void printSelf( ostream& _s )
Print itself
virtual char readGene( unsigned _i )
methods that implement the EO <em>protocol</em>
virtual void writeGene( unsigned _i, char _val )
Writes over gene _i, that is, the _i'eth element of the EO
virtual ~EOString()
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 string into an EO
EOString( const string& _str ="", const string& _ID = "", fitnessT _fit = 0 )
ctor

EOString( const EOString<fitnessT>& _eoStr )
copy ctor

const EOString& operator =( const EOString& _eoStr )
Assignment operator

virtual ~EOString()
dtor

virtual char 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, char _val )
Writes over gene _i, that is, the _i'eth element of the EO
Throws:
out_of_range if _i is larger than EOs size

virtual void insertGene( unsigned _i, char _val )
Inserts a value after _i, displacing anything to the right
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 )
Print itself


This class has no child classes.

alphabetic index hierarchy of classes


BinOp