Chombo + EB + MF  3.2
Classes | Namespaces | Macros | Functions
InsertionSort.H File Reference

Some support for sorting small arrays. More...

#include <cstdlib>
#include <functional>
#include "NamespaceHeader.H"
#include "NamespaceFooter.H"
Include dependency graph for InsertionSort.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...
 

Detailed Description

Some support for sorting small arrays.

Macro Definition Documentation

◆ _INSERTIONSORT_H_

#define _INSERTIONSORT_H_