GPLIB++
Public Member Functions | List of all members
gplib::GrayTranscribe Class Reference

This class implements the Gray code representation of a binary string and the corresponding transcription. More...

#include <GrayTranscribe.h>

Inheritance diagram for gplib::GrayTranscribe:
Inheritance graph
[legend]

Public Member Functions

virtual ttranscribed GetValues (const tpopmember &member)
 Re-Implements the function from BinaryTranscribe. More...
 
 GrayTranscribe (const ttranscribed &base, const ttranscribed &step, const tsizev &gene)
 
virtual ~GrayTranscribe ()
 
- Public Member Functions inherited from gplib::BinaryTranscribe
 BinaryTranscribe (const ttranscribed &base, const ttranscribed &step, const tsizev &gene)
 Without basevalues, stepsizes and genesizes BinaryTranscribe does not work, so we enforce their use by including them in the constructor. More...
 
virtual int GetNparams ()
 Returns the number of parameters that are encoded in the binary string. More...
 
 BinaryTranscribe (const BinaryTranscribe &Old)
 We declare a copy constructor that copies the private variables;. More...
 
 BinaryTranscribe (const GeneralTranscribe &Old)
 
virtual ~BinaryTranscribe ()
 
- Public Member Functions inherited from gplib::GeneralTranscribe
 GeneralTranscribe ()
 
 GeneralTranscribe (const GeneralTranscribe &Old)
 
virtual ~GeneralTranscribe ()
 

Additional Inherited Members

- Protected Attributes inherited from gplib::BinaryTranscribe
const ttranscribed basevalues
 The minimum value for each parameter. More...
 
const ttranscribed stepsizes
 The stepsize associated to a bit change for each parameter. More...
 
const tsizev genesizes
 The number of bits for each parameter. More...
 

Detailed Description

This class implements the Gray code representation of a binary string and the corresponding transcription.

Definition at line 10 of file GrayTranscribe.h.

Constructor & Destructor Documentation

gplib::GrayTranscribe::GrayTranscribe ( const ttranscribed base,
const ttranscribed step,
const tsizev gene 
)

Definition at line 7 of file GrayTranscribe.cpp.

gplib::GrayTranscribe::~GrayTranscribe ( )
virtual

Definition at line 13 of file GrayTranscribe.cpp.

Member Function Documentation

ttranscribed gplib::GrayTranscribe::GetValues ( const tpopmember member)
virtual

Re-Implements the function from BinaryTranscribe.

Reimplemented from gplib::BinaryTranscribe.

Definition at line 17 of file GrayTranscribe.cpp.

References gplib::BinaryTranscribe::basevalues, gplib::BinaryTranscribe::genesizes, and gplib::BinaryTranscribe::stepsizes.

Referenced by main().


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