Changed the (abstract) name for fitness from F to FitT so it matches

that of file eoFixedLength.h - it is far clearer in the documentation
diagrams this way.
This commit is contained in:
evomarc 2000-12-02 08:21:18 +00:00
commit 00e21770ad
2 changed files with 6 additions and 6 deletions

View file

@ -34,7 +34,7 @@
/** eoReal: implementation of simple real-valued chromosome.
* based on eoFixedLength class
*/
template <class F> class eoReal: public eoFixedLength<F, double>
template <class FitT> class eoReal: public eoFixedLength<FitT, double>
{
public:
@ -43,7 +43,7 @@ template <class F> class eoReal: public eoFixedLength<F, double>
* @param size Size of the vector
*/
eoReal(unsigned size = 0, double value = 0.0):
eoFixedLength<F, double>(size, value) {}
eoFixedLength<FitT, double>(size, value) {}
/// My class name.
string className() const

View file

@ -48,7 +48,7 @@
\ingroup bitstring
* based on STL's vector<bool> specialization.
*/
template <class F> class eoBin: public eoFixedLength<F, bool>
template <class FitT> class eoBin: public eoFixedLength<FitT, bool>
{
public:
@ -57,7 +57,7 @@ template <class F> class eoBin: public eoFixedLength<F, bool>
* @param size Size of the binary string.
*/
eoBin(unsigned size = 0, bool value = false):
eoFixedLength<F, bool>(size, value) {}
eoFixedLength<FitT, bool>(size, value) {}
/// My class name.
string className() const
@ -71,7 +71,7 @@ template <class F> class eoBin: public eoFixedLength<F, bool>
*/
void printOn(ostream& os) const
{
EO<F>::printOn(os);
EO<FitT>::printOn(os);
os << ' ';
os << size() << ' ';
copy(begin(), end(), ostream_iterator<bool>(os));
@ -83,7 +83,7 @@ template <class F> class eoBin: public eoFixedLength<F, bool>
*/
void readFrom(istream& is)
{
EO<F>::readFrom(is);
EO<FitT>::readFrom(is);
unsigned s;
is >> s;
string bits;