Chombo + EB + MF
3.2
|
Some support for sorting small arrays. More...
#include <cstdlib>
#include <functional>
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Go to the source code of this file.
Classes | |
class | Sort::CmpGreaterIndex< T > |
Compares m_a[i] > m_a[j]. More... | |
class | Sort::Move1Array< T > |
Mover for use with 'rearrangeToIndex'. More... | |
class | Sort::Move2Array< T1, T2 > |
Mover for use with 'rearrangeToIndex'. More... | |
Namespaces | |
Sort | |
Some support for sorting small arrays. | |
Macros | |
#define | _INSERTIONSORT_H_ |
Functions | |
template<typename T , typename Cmp , typename M > | |
void | Sort::insertion (const int n, T *array, const Cmp &cmp, const M *const mask) |
Insertion sort. More... | |
template<typename T , typename Cmp > | |
void | Sort::insertion (const int n, T *array, const Cmp &cmp) |
template<typename T > | |
void | Sort::insertion (const int n, T *array) |
template<typename Mv > | |
void | Sort::rearrangeToIndex (const int n, int *const index, Mv &mv) |
Rearrange arrays to a sorted index. More... | |
Some support for sorting small arrays.
#define _INSERTIONSORT_H_ |