some changes to start, new work on eoLottery
This commit is contained in:
parent
2cafee6bc6
commit
e20fb6c7aa
4 changed files with 66 additions and 29 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Reference in a new issue