The compare functions.
More...
#include <murl_util_sort.h>
template<class DataType>
class Murl::Util::CompareFunction< DataType >
The compare functions.
- Template Parameters
-
DataType | Available for UInt64, SInt64, UInt32, SInt32, Real, Double and String. |
|
static SInt32 | Ascending (const DataType *source1, const DataType *source2) |
| The compare function for ascending sort. More...
|
|
static SInt32 | Descending (const DataType *source1, const DataType *source2) |
| The compare function for descending sort. More...
|
|
◆ Ascending()
template<class DataType >
The compare function for ascending sort.
- Parameters
-
source1 | Pointer to the 1st source. |
source2 | Pointer to the 2nd source. |
- Returns
- Zero if source1 is equal to source2, negativ if source1 is lesser than source2, positive if source1 is greater than source2.
◆ Descending()
template<class DataType >
The compare function for descending sort.
- Parameters
-
source1 | Pointer to the 1st source. |
source2 | Pointer to the 2nd source. |
- Returns
- Zero if source1 is equal to source2, negativ if source2 is lesser than source1, positive if source2 is greater than source1.
The documentation for this class was generated from the following file: