some changes to start, new work on eoLottery

This commit is contained in:
gustavo 1999-02-03 17:28:07 +00:00
commit e20fb6c7aa
4 changed files with 66 additions and 29 deletions

View file

@ -11,24 +11,24 @@
class eoFitness: public eoPersistent
{
public:
virtual operator float() const = 0;
virtual bool operator<(const eoFitness& other) const = 0;
bool operator>(const eoFitness& other) const
virtual bool operator>(const eoFitness& other) const
{
return !(*this < other || *this == other);
}
bool operator==(const eoFitness& other) const
virtual bool operator==(const eoFitness& other) const
{
return !(other < *this || *this < other);
}
bool operator!=(const eoFitness& other) const
virtual bool operator!=(const eoFitness& other) const
{
return other < *this || *this < other;
}
virtual operator float() const = 0;
};
//-----------------------------------------------------------------------------