This commit is contained in:
gustavo 1999-01-29 12:23:55 +00:00
commit 3fe0218a72
79 changed files with 12547 additions and 0 deletions

36
eo/src/eoFitness.h Normal file
View file

@ -0,0 +1,36 @@
//-----------------------------------------------------------------------------
// eoFitness.cpp
// (c) GeNeura Team 1998
//-----------------------------------------------------------------------------
#ifndef EOFITNESS_H
#define EOFITNESS_H
//-----------------------------------------------------------------------------
class eoFitness: public eoPersistent
{
public:
virtual bool operator<(const eoFitness& other) const = 0;
bool operator>(const eoFitness& other) const
{
return !(*this < other || *this == other);
}
bool operator==(const eoFitness& other) const
{
return !(other < *this || *this < other);
}
bool operator!=(const eoFitness& other) const
{
return other < *this || *this < other;
}
virtual operator float() const = 0;
};
//-----------------------------------------------------------------------------
#endif EOFITNESS_H