inner class necessary for using the sort algorithm.
More...
|
| Compare (bool b=false) |
| Default constructor with an order flag. More...
|
|
bool | operator() (const std::pair< std::pair< Int, float >, float > &c1, const std::pair< std::pair< Int, float >, float > &c2) |
| overloaded operator() for comparing maps of maps std::pair<std::pair<Int,float>,float>. More...
|
|
bool | operator() (const std::pair< float, float > &c1, const std::pair< float, float > &c2) |
| overloaded operator() for comparing pairs of float, float std::pair<float,float>. More...
|
|
inner class necessary for using the sort algorithm.
Defines several overloaded operator() for usage with the std::sort algorithm
- Experimental classes:
- This algorithm is work in progress and might change.
◆ Compare()
Default constructor with an order flag.
◆ operator()() [1/2]
bool operator() |
( |
const std::pair< float, float > & |
c1, |
|
|
const std::pair< float, float > & |
c2 |
|
) |
| |
|
inline |
overloaded operator() for comparing pairs of float, float std::pair<float,float>.
If the order flag is false, an ascending order are returned else a descending. The comparison is done by the first argument of the map.
◆ operator()() [2/2]
bool operator() |
( |
const std::pair< std::pair< Int, float >, float > & |
c1, |
|
|
const std::pair< std::pair< Int, float >, float > & |
c2 |
|
) |
| |
|
inline |
overloaded operator() for comparing maps of maps std::pair<std::pair<Int,float>,float>.
If the order flag is false, the second argument of the outer map is selected. The output is an ascending order. If the order flag is true, the first argument of the inner class is selected to get a descending order.
◆ flag