173 public std::binary_function<typename Cmp::first_argument_type *, typename Cmp::second_argument_type *, typename Cmp::result_type>
182 template <
typename T1,
typename T2>
183 typename Cmp::result_type
186 return cmp_(*left, *right);
224 std::binary_function<typename Cmp::second_argument_type, typename Cmp::first_argument_type, typename Cmp::result_type>
233 template <
typename T1,
typename T2>
234 typename Cmp::result_type
237 return cmp_(right, left);
274 template <
typename Cmp1,
typename Cmp2>
276 std::binary_function<typename Cmp1::first_argument_type, typename Cmp1::second_argument_type, bool>
281 template <
typename T1,
typename T2>
285 if (
cmp1_(left, right))
291 if (
cmp1_(right, left))
297 return cmp2_(left, right);
315 template <
typename Cmp1,
typename Cmp2>
324 template <
typename PairType>
326 std::binary_function<PairType, PairType, bool>
328 bool operator()(
const PairType & left,
const PairType & right)
const 330 return left.first < right.first;
338 template <
typename PairType>
340 std::binary_function<PairType, PairType, bool>
342 bool operator()(
const PairType & left,
const PairType & right)
const 344 return left.second < right.second;
352 template <
typename PairType>
354 std::binary_function<PairType, PairType, bool>
356 bool operator()(
const PairType & left,
const PairType & right)
const 358 return left.first > right.first;
366 template <
typename PairType>
368 std::binary_function<PairType, PairType, bool>
370 bool operator()(
const PairType & left,
const PairType & right)
const 372 return left.second > right.second;
380 template <
typename PairType>
382 std::binary_function<PairType, PairType, bool>
384 bool operator()(
const PairType & left,
const PairType & right)
const 386 return left.first == right.first;
394 template <
typename PairType>
396 std::binary_function<PairType, PairType, bool>
398 bool operator()(
const PairType & left,
const PairType & right)
const 400 return left.second == right.second;
412 template <
typename CompareType>
414 public std::binary_function<CompareType, CompareType, bool>
424 CompareType diff = fabs(i - j);
EqualInTolerance(CompareType &c)
Definition: ComparatorUtils.h:418
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:384
LexicographicComparator(Cmp1 const &cmp1=Cmp1(), Cmp2 const &cmp2=Cmp2())
Definition: ComparatorUtils.h:278
A wrapper class that combines two comparators lexicographically. Normally you should use the make-fun...
Definition: ComparatorUtils.h:275
Cmp::result_type operator()(T1 left, T2 right) const
Definition: ComparatorUtils.h:235
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:342
Struct for comparison of std::pair using second ONLY e.g. for use with std::sort. ...
Definition: ComparatorUtils.h:395
Cmp2 const & cmp2_
Definition: ComparatorUtils.h:304
ReverseComparator< Cmp > reverseComparator(Cmp const &cmp)
Make-function to create a ReverseComparator from another comparator without the need to specify the t...
Definition: ComparatorUtils.h:260
Class for comparison of std::pair using first ONLY e.g. for use with std::sort.
Definition: ComparatorUtils.h:353
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
PointerComparator(PointerComparator const &pCmp)
Definition: ComparatorUtils.h:175
CompareType & tolerance
Definition: ComparatorUtils.h:416
Class for comparison of std::pair using second ONLY e.g. for use with std::sort.
Definition: ComparatorUtils.h:367
LexicographicComparator< Cmp1, Cmp2 > lexicographicComparator(Cmp1 const &cmp1, Cmp2 const &cmp2)
Make-function to create a LexicographicComparator from two other comparators without the need to spec...
Definition: ComparatorUtils.h:316
Struct for binary predicate to consider equality with a certain tolerance.
Definition: ComparatorUtils.h:413
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:328
Class for comparison of std::pair using first ONLY e.g. for use with std::sort.
Definition: ComparatorUtils.h:381
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:398
Cmp1 const & cmp1_
Definition: ComparatorUtils.h:303
bool operator()(CompareType i, CompareType j)
Definition: ComparatorUtils.h:422
ReverseComparator(Cmp const &cmp=Cmp())
Definition: ComparatorUtils.h:230
PointerComparator< Cmp > pointerComparator(Cmp const &cmp)
Make-function to create a PointerComparator from another comparator without the need to specify the t...
Definition: ComparatorUtils.h:209
Cmp const & cmp_
Definition: ComparatorUtils.h:190
Class for comparison of std::pair using second ONLY e.g. for use with std::sort.
Definition: ComparatorUtils.h:339
Wrapper that takes a comparator for `something' and makes a comparator for pointers to `something' ou...
Definition: ComparatorUtils.h:172
ReverseComparator(ReverseComparator const &cmp)
Definition: ComparatorUtils.h:227
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:370
PointerComparator(Cmp const &cmp=Cmp())
Definition: ComparatorUtils.h:178
bool operator()(T1 left, T2 right) const
Definition: ComparatorUtils.h:283
Wrapper that reverses (exchanges) the two arguments of a comparator. Normally you should use the make...
Definition: ComparatorUtils.h:223
Class for comparison of std::pair using first ONLY e.g. for use with std::sort.
Definition: ComparatorUtils.h:325
bool operator()(const PairType &left, const PairType &right) const
Definition: ComparatorUtils.h:356
Cmp const & cmp_
Definition: ComparatorUtils.h:241
Cmp::result_type operator()(T1 left, T2 right) const
Definition: ComparatorUtils.h:184