OpenMS  2.7.0
Classes | Namespaces | Functions
ComparatorUtils.h File Reference
#include <functional>
Include dependency graph for ComparatorUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PointerComparator< Cmp >
 Wrapper that takes a comparator for `something' and makes a comparator for pointers to `something' out of it. Normally you should use the make-function pointerComparator() because then you do not need to specify the template arguments. More...
 
struct  ReverseComparator< Cmp >
 Wrapper that reverses (exchanges) the two arguments of a comparator. Normally you should use the make-function reverseComparator() because then you do not need to specify the template arguments. More...
 
struct  LexicographicComparator< Cmp1, Cmp2 >
 A wrapper class that combines two comparators lexicographically. Normally you should use the make-function lexicographicComparator() because then you do not need to specify the template arguments. More...
 
struct  PairComparatorFirstElement< PairType >
 Class for comparison of std::pair using first ONLY e.g. for use with std::sort. More...
 
struct  PairComparatorSecondElement< PairType >
 Class for comparison of std::pair using second ONLY e.g. for use with std::sort. More...
 
struct  PairComparatorFirstElementMore< PairType >
 Class for comparison of std::pair using first ONLY e.g. for use with std::sort. More...
 
struct  PairComparatorSecondElementMore< PairType >
 Class for comparison of std::pair using second ONLY e.g. for use with std::sort. More...
 
struct  PairMatcherFirstElement< PairType >
 Class for comparison of std::pair using first ONLY e.g. for use with std::sort. More...
 
struct  PairMatcherSecondElement< PairType >
 Struct for comparison of std::pair using second ONLY e.g. for use with std::sort. More...
 
struct  EqualInTolerance< CompareType >
 Struct for binary predicate to consider equality with a certain tolerance. More...
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 

Functions

template<class Cmp >
PointerComparator< Cmp > pointerComparator (Cmp const &cmp)
 Make-function to create a PointerComparator from another comparator without the need to specify the template arguments. More...
 
template<class Cmp >
ReverseComparator< Cmp > reverseComparator (Cmp const &cmp)
 Make-function to create a ReverseComparator from another comparator without the need to specify the template arguments. More...
 
template<typename Cmp1 , typename Cmp2 >
LexicographicComparator< Cmp1, Cmp2 > lexicographicComparator (Cmp1 const &cmp1, Cmp2 const &cmp2)
 Make-function to create a LexicographicComparator from two other comparators without the need to specify the template arguments. More...