EvolvingObjects
eoBit< FitT > Class Template Reference

Implementation of bitstring chromosome. More...

#include <ga/eoBit.h>

Inheritance diagram for eoBit< FitT >:
eoVector< FitT, bool > EO< FitT > vector eoObject eoPersistent eoPrintable

List of all members.

Public Member Functions

 eoBit (unsigned size=0, bool value=false)
 (Default) Constructor.
virtual std::string className () const
 My class name.
virtual void printOn (std::ostream &os) const
 To print me on a stream.
virtual void readFrom (std::istream &is)
 To read me from a stream.

Detailed Description

template<class FitT>
class eoBit< FitT >

Implementation of bitstring chromosome.

Based on STL's std::vector<bool> specialization.

Examples:
t-eoGA.cpp, and t-eoStateAndParser.cpp.

Definition at line 62 of file eoBit.h.


Constructor & Destructor Documentation

template<class FitT>
eoBit< FitT >::eoBit ( unsigned  size = 0,
bool  value = false 
) [inline]

(Default) Constructor.

Parameters:
sizeSize of the binary std::string.
valueDefault value.

Definition at line 76 of file eoBit.h.


Member Function Documentation

template<class FitT>
virtual void eoBit< FitT >::printOn ( std::ostream &  os) const [inline, virtual]

To print me on a stream.

Parameters:
osThe std::ostream.

Reimplemented from eoVector< FitT, bool >.

Definition at line 89 of file eoBit.h.

template<class FitT>
virtual void eoBit< FitT >::readFrom ( std::istream &  is) [inline, virtual]

To read me from a stream.

Parameters:
isThe std::istream.

Reimplemented from eoVector< FitT, bool >.

Definition at line 101 of file eoBit.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends