A sorter that sorts a sequence (e.g. ) with respect to a given input ordering (e.g. a base).
More...
#include <base_sorter.h>
Public Member Functions | |
BaseSorterByReference (const std::vector< ulong > &order) | |
constructor | |
BaseSorterByReference (const std::vector< ulong > &order) | |
constructor | |
Static Public Member Functions | |
template<class InputIterator > | |
static std::vector< ulong > | createOrder (uint size, InputIterator begin, InputIterator end) |
constructs an ordering array with the same parameters as BaseSorter for use with BaseSorterByReference | |
template<class InputIterator > | |
static std::vector< ulong > | createOrder (uint size, InputIterator begin, InputIterator end) |
constructs an ordering array with the same parameters as BaseSorter for use with BaseSorterByReference |
A sorter that sorts a sequence (e.g. ) with respect to a given input ordering (e.g. a base).
This class uses a reference to a given ordering array to determine the order of elements