SimpleParallelSort< COMPARE, FLAGS > Class Template Reference Data Structures

#include <parallelsort.h>

Inheritance diagram for SimpleParallelSort< COMPARE, FLAGS >:

详细描述

template<typename COMPARE = DefaultCompare, BASESORTFLAGS FLAGS = BASESORTFLAGS::NONE>
class maxon::SimpleParallelSort< COMPARE, FLAGS >

Specialized BaseSort template for simple datatypes.

Template Parameters
COMPARE Class that offers the methods IsEqual and LessThan.
FLAGS See BASESORTFLAGS.

范例:

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

or

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

静态公共成员函数

template<typename T1 , typename T2 >
static Bool   LessThan (const T1 &a, const T2 &b)
template<typename T1 , typename T2 >
static Bool   IsEqual (const T1 &a, const T2 &b)

Additional Inherited Members

-  Public Types inherited from ParallelSort< SimpleParallelSort< DefaultCompare, BASESORTFLAGS::NONE >, BASESORTFLAGS::NONE >
using  Super = BaseSort < SimpleParallelSort < DefaultCompare , BASESORTFLAGS::NONE >, FLAGS >
-  Public Member Functions inherited from ParallelSort< SimpleParallelSort< DefaultCompare, BASESORTFLAGS::NONE >, BASESORTFLAGS::NONE >
void  Sort (ITERATOR start, ITERATOR end, JobQueueInterface *queue=JOBQUEUE_CURRENT) const
void  Sort (ITERATOR start, Int count, JobQueueInterface *queue=JOBQUEUE_CURRENT) const
void  Sort ( ARRAY &arr, JobQueueInterface *queue=JOBQUEUE_CURRENT) const
-  Public Member Functions inherited from BaseSort< SimpleParallelSort< DefaultCompare, BASESORTFLAGS::NONE >, FLAGS >
void  Sort (ITERATOR start, ITERATOR end) const
void  Sort (ITERATOR start, Int count) const
void  Sort ( ARRAY &arr) const
Int   FindIndex (const SEARCHTYPE &key, ITERATOR arr, Int count) 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

成员函数文档编制

◆  LessThan()

static Bool LessThan ( const T1 &  a ,
const T2 &  b  
)
static

◆  IsEqual()

static Bool IsEqual ( const T1 &  a ,
const T2 &  b  
)
static