#include <extensivecomparator.hh>
Public Member Functions | |
QECODE_EXPORT | ExtensiveComparator (int the_size, int *the_scores) |
QECODE_EXPORT bool | operator() (int a, int b) |
The method to compare two integers. This compares the scores of a and b. Returns true if the first argument has a smaller score than b. | |
Private Attributes | |
int | size |
int * | scores |
Definition at line 29 of file extensivecomparator.hh.
ExtensiveComparator::ExtensiveComparator | ( | int | the_size, | |
int * | the_scores | |||
) |
Constructor for an extensive Comparator.
the_size | This comparator will compare integers from 0 to this parameter. | |
the_scores | The array of scores. |
Definition at line 26 of file extensivecomparator.cc.
bool ExtensiveComparator::operator() | ( | int | a, | |
int | b | |||
) |
The method to compare two integers. This compares the scores of a and b. Returns true if the first argument has a smaller score than b.
Definition at line 31 of file extensivecomparator.cc.
int ExtensiveComparator::size [private] |
Definition at line 30 of file extensivecomparator.hh.
Referenced by ExtensiveComparator(), and operator()().
int* ExtensiveComparator::scores [private] |
Definition at line 31 of file extensivecomparator.hh.
Referenced by ExtensiveComparator(), and operator()().