a class that helps us carry out indexed sorting. More...
#include <PseudoJet.hh>
Public Member Functions | |
IndexedSortHelper (const std::vector< double > *reference_values) | |
int | operator() (const int &i1, const int &i2) const |
Private Attributes | |
const std::vector< double > * | _ref_values |
a class that helps us carry out indexed sorting.
Definition at line 269 of file PseudoJet.hh.
IndexedSortHelper::IndexedSortHelper | ( | const std::vector< double > * | reference_values | ) | [inline] |
Definition at line 271 of file PseudoJet.hh.
References _ref_values.
00271 { 00272 _ref_values = reference_values; 00273 };
int IndexedSortHelper::operator() | ( | const int & | i1, | |
const int & | i2 | |||
) | const [inline] |
Definition at line 274 of file PseudoJet.hh.
References _ref_values.
00274 { 00275 return (*_ref_values)[i1] < (*_ref_values)[i2]; 00276 };
const std::vector<double>* IndexedSortHelper::_ref_values [private] |
Definition at line 276 of file PseudoJet.hh.
Referenced by IndexedSortHelper(), and operator()().