#include <OpenMS/KERNEL/ComparatorUtils.h>
Both comparators should of course have the same argument types. The result_type is bool, that is, we perform a two-way comparison like less<>
and its relatives.
Public Member Functions | |
LexicographicComparator (Cmp1 const &cmp1=Cmp1(), Cmp2 const &cmp2=Cmp2()) | |
template<typename T1, typename T2> | |
bool | operator() (T1 left, T2 right) const |
Protected Attributes | |
Cmp1 const & | cmp1_ |
Cmp2 const & | cmp2_ |
Related Functions | |
(Note that these are not member functions.) | |
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. |
LexicographicComparator | ( | Cmp1 const & | cmp1 = Cmp1() , |
|
Cmp2 const & | cmp2 = Cmp2() | |||
) | [inline] |
bool operator() | ( | T1 | left, | |
T2 | right | |||
) | const [inline] |
LexicographicComparator< Cmp1, Cmp2 > lexicographicComparator | ( | Cmp1 const & | cmp1, | |
Cmp2 const & | cmp2 | |||
) | [related] |
Make-function to create a LexicographicComparator from two other comparators without the need to specify the template arguments.
The usage is similar to pointerComparator() or reverseComparator(), which see.
Cmp1 const& cmp1_ [protected] |
Cmp2 const& cmp2_ [protected] |
Generated Tue Apr 1 15:36:45 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |