Mantid
|
Comparator class for sorting peaks by one or more criteria. More...
Public Types | |
using | ColumnAndDirection = LeanElasticPeaksWorkspace::ColumnAndDirection |
using | ColumnAndDirection = PeaksWorkspace::ColumnAndDirection |
Public Member Functions | |
bool | operator() (const LeanElasticPeak &a, const LeanElasticPeak &b) |
Compare two peaks using the stored criteria. More... | |
bool | operator() (const Peak &a, const Peak &b) |
Compare two peaks using the stored criteria. More... | |
PeakComparator (std::vector< ColumnAndDirection > &criteria) | |
Constructor for the comparator for sorting peaks. More... | |
PeakComparator (std::vector< ColumnAndDirection > &criteria) | |
Constructor for the comparator for sorting peaks. More... | |
Public Attributes | |
std::vector< ColumnAndDirection > & | criteria |
Comparator class for sorting peaks by one or more criteria.
Definition at line 60 of file LeanElasticPeaksWorkspace.cpp.
using Mantid::DataObjects::PeakComparator::ColumnAndDirection = LeanElasticPeaksWorkspace::ColumnAndDirection |
Definition at line 62 of file LeanElasticPeaksWorkspace.cpp.
Definition at line 62 of file PeaksWorkspace.cpp.
|
inlineexplicit |
Constructor for the comparator for sorting peaks.
criteria | : a vector with a list of pairs: column name, bool; where bool = true for ascending, false for descending sort. |
Definition at line 69 of file LeanElasticPeaksWorkspace.cpp.
|
inlineexplicit |
Constructor for the comparator for sorting peaks.
criteria | : a vector with a list of pairs: column name, bool; where bool = true for ascending, false for descending sort. |
Definition at line 69 of file PeaksWorkspace.cpp.
|
inline |
Compare two peaks using the stored criteria.
Definition at line 72 of file LeanElasticPeaksWorkspace.cpp.
References criteria, and Mantid::DataObjects::BasePeak::getValueByColName().
Compare two peaks using the stored criteria.
Definition at line 72 of file PeaksWorkspace.cpp.
References criteria, Mantid::DataObjects::Peak::getBankName(), and Mantid::DataObjects::Peak::getValueByColName().
std::vector< ColumnAndDirection > & Mantid::DataObjects::PeakComparator::criteria |
Definition at line 63 of file LeanElasticPeaksWorkspace.cpp.
Referenced by operator()().