Murl::Util::CompareFunction< DataType > Class Template Reference

The compare functions. More...

#include "murl_util_sort.h"

Static Public Member Functions

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...
 

Detailed Description

template<class DataType>
class Murl::Util::CompareFunction< DataType >

The compare functions.

Template Parameters
DataTypeAvailable for UInt64, SInt64, UInt32, SInt32, Real, Double and String.

Member Function Documentation

◆ Ascending()

template<class DataType >
static SInt32 Murl::Util::CompareFunction< DataType >::Ascending ( const DataType *  source1,
const DataType *  source2 
)
static

The compare function for ascending sort.

Parameters
source1Pointer to the 1st source.
source2Pointer 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 >
static SInt32 Murl::Util::CompareFunction< DataType >::Descending ( const DataType *  source1,
const DataType *  source2 
)
static

The compare function for descending sort.

Parameters
source1Pointer to the 1st source.
source2Pointer 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:
  • murl_util_sort.h


Copyright © 2011-2024 Spraylight GmbH.