Only names modifications, to comply to EO strict rules :-)

This commit is contained in:
evomarc 2001-02-16 05:06:17 +00:00
commit da8b467b12

View file

@ -44,23 +44,27 @@
template <class EOT> class eoDetTournamentSelect: public eoSelectOne<EOT> template <class EOT> class eoDetTournamentSelect: public eoSelectOne<EOT>
{ {
public: public:
/// (Default) Constructor. /* (Default) Constructor -
eoDetTournamentSelect(unsigned _Tsize = 2 ):eoSelectOne<EOT>(), Tsize(_Tsize) { @param _tSize tournament size
*/
eoDetTournamentSelect(unsigned _tSize = 2 ):eoSelectOne<EOT>(), tSize(_tSize) {
// consistency check // consistency check
if (Tsize < 2) { if (tSize < 2) {
cout << "Warning, Tournament size should be >= 2\nAdjusted\n"; cout << "Warning, Tournament size should be >= 2\nAdjusted\n";
Tsize = 2; tSize = 2;
} }
} }
/// Perform deterministic tournament /* Perform deterministic tournament calling the appropriate fn
virtual const EOT& operator()(const eoPop<EOT>& pop) see selectors.h
*/
virtual const EOT& operator()(const eoPop<EOT>& _pop)
{ {
return deterministic_tournament(pop, Tsize); return deterministic_tournament(_pop, tSize);
} }
private: private:
unsigned Tsize; unsigned tSize;
}; };
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------