Template for saving the evaluation of an algorithm for the algorithm selector, the type refers to the used algorithm. More...
#include <AlgorithmEval.h>
Public Member Functions | |
| AlgorithmEval (Algorithm< T > *alg, int type, double eval, double m_avgRunTime) | |
| AlgorithmEval (XMLTag *tag) | |
| std::pair< double, int > | GetEval (ObjectID_t id) const |
| const std::map< ObjectID_t, std::pair< double, int > > | GetMap () const |
| size_t | MapLength () const |
| XMLTag * | Save (std::string name="") |
| void | SetEval (ObjectID_t id, double eval) |
Public Attributes | |
| Algorithm< T > * | m_algorithm |
| int | m_algorithmType |
| double | m_avgRunTime |
| double | m_eval |
Private Attributes | |
| std::map< ObjectID_t, std::pair< double, int > > | m_objectEval |
Template for saving the evaluation of an algorithm for the algorithm selector, the type refers to the used algorithm.
template<typename T> class AlgorithmEval
Definition at line 64 of file AlgorithmEval.h.
| cop::AlgorithmEval< T >::AlgorithmEval | ( | Algorithm< T > * | alg, |
| int | type, | ||
| double | eval, | ||
| double | m_avgRunTime | ||
| ) | [inline] |
Definition at line 67 of file AlgorithmEval.h.
| AlgorithmEval::AlgorithmEval | ( | XMLTag * | tag | ) |
Definition at line 27 of file AlgorithmEval.cpp.
| std::pair<double, int> cop::AlgorithmEval< T >::GetEval | ( | ObjectID_t | id | ) | const [inline] |
Definition at line 94 of file AlgorithmEval.h.
| const std::map<ObjectID_t, std::pair<double, int> > cop::AlgorithmEval< T >::GetMap | ( | ) | const [inline] |
Definition at line 125 of file AlgorithmEval.h.
| size_t cop::AlgorithmEval< T >::MapLength | ( | ) | const [inline] |
Definition at line 124 of file AlgorithmEval.h.
| XMLTag * AlgorithmEval::Save | ( | std::string | name = "" | ) |
Definition at line 66 of file AlgorithmEval.cpp.
| void cop::AlgorithmEval< T >::SetEval | ( | ObjectID_t | id, |
| double | eval | ||
| ) | [inline] |
Definition at line 110 of file AlgorithmEval.h.
| Algorithm<T>* cop::AlgorithmEval< T >::m_algorithm |
Definition at line 136 of file AlgorithmEval.h.
| int cop::AlgorithmEval< T >::m_algorithmType |
Definition at line 137 of file AlgorithmEval.h.
| double cop::AlgorithmEval< T >::m_avgRunTime |
Definition at line 139 of file AlgorithmEval.h.
| double cop::AlgorithmEval< T >::m_eval |
Definition at line 138 of file AlgorithmEval.h.
std::map<ObjectID_t, std::pair<double, int> > cop::AlgorithmEval< T >::m_objectEval [private] |
Definition at line 141 of file AlgorithmEval.h.