moeoOneObjectiveComparator< MOEOT > Class Template Reference

Functor allowing to compare two solutions according to one objective. More...

#include <moeoComparator.h>

Inheritance diagram for moeoOneObjectiveComparator< MOEOT >:

moeoComparator< MOEOT > eoBF< A1, A2, R > eoFunctorBase List of all members.

Public Member Functions

 moeoOneObjectiveComparator (unsigned _obj)
 Ctor.
const bool operator() (const MOEOT &_moeo1, const MOEOT &_moeo2)
 Returns true if _moeo1 is greater than _moeo2 on the obj objective.

Private Attributes

unsigned obj
 the index of objective

Detailed Description

template<class MOEOT>
class moeoOneObjectiveComparator< MOEOT >

Functor allowing to compare two solutions according to one objective.

Definition at line 48 of file moeoComparator.h.


Constructor & Destructor Documentation

template<class MOEOT>
moeoOneObjectiveComparator< MOEOT >::moeoOneObjectiveComparator ( unsigned  _obj  )  [inline]

Ctor.

Parameters:
_obj the index of objective

Definition at line 56 of file moeoComparator.h.

References moeoOneObjectiveComparator< MOEOT >::obj.


Member Function Documentation

template<class MOEOT>
const bool moeoOneObjectiveComparator< MOEOT >::operator() ( const MOEOT &  _moeo1,
const MOEOT &  _moeo2 
) [inline]

Returns true if _moeo1 is greater than _moeo2 on the obj objective.

Parameters:
_moeo1 the first solution
_moeo2 the second solution

Definition at line 69 of file moeoComparator.h.

References moeoOneObjectiveComparator< MOEOT >::obj.


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 16:53:22 2007 for ParadisEO-MOEO by  doxygen 1.5.1