SimpleSort< BASICTYPE > Class Template Reference

#include <sort.h>

Inheritance diagram for SimpleSort< BASICTYPE >:

Static Public Member Functions

static Bool LessThan (const BASICTYPE &a, const BASICTYPE &b)
 
static Bool IsEqual (const BASICTYPE &a, const BASICTYPE &b)
 

Additional Inherited Members

- Public Member Functions inherited from BaseSort< SimpleSort< BASICTYPE > >
void Sort (ITERATOR start, ITERATOR end) const
 
void Sort (ITERATOR start, Int count) const
 
void Sort (ARRAY &arr) const
 
ITERATOR Find (const SEARCHTYPE &key, ITERATOR arr, Int count) const
 
ARRAY::ValueType * Find (const SEARCHTYPE &key, const ARRAY &arr) const
 
ITERATOR FindInsertionIndex (const SEARCHTYPE &key, ITERATOR arr, Int count, Int &insertionIndex) const
 
ARRAY::ValueType * FindInsertionIndex (const SEARCHTYPE &key, const ARRAY &arr, Int &insertionIndex) const
 

Detailed Description

template<typename BASICTYPE>
class cineware::SimpleSort< BASICTYPE >

Specialized BaseSort template for simple datatypes.

Template Parameters
BASICTYPEDatatype that offers the operators == and <

Example:

BaseArray<Int> array;
SimpleSort<Int> test;
test.Sort(array);

or

BaseArray<Int> array2;
SimpleSort<Int> test2;
test2.Sort(&array2[0], array2.GetCount());

Member Function Documentation

◆ LessThan()

static Bool LessThan ( const BASICTYPE &  a,
const BASICTYPE &  b 
)
static

◆ IsEqual()

static Bool IsEqual ( const BASICTYPE &  a,
const BASICTYPE &  b 
)
static