This file contains some lightweight class templates which simplify the usage of comparators:
#include <functional>
Go to the source code of this file.
Namespaces | |
namespace | OpenMS |
Classes | |
struct | PointerComparator |
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 |
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 |
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... | |
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. | |
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. | |
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. |
Generated Tue Apr 1 15:36:39 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |