www.mooseframework.org
Classes | Namespaces | Functions
IndirectSort.h File Reference

Go to the source code of this file.

Classes

struct  Moose::indirect_comparator< RandomAccessIterator, UserComparisonFunctor >
 

Namespaces

 Moose
 

Functions

template<class RandomAccessIterator >
void Moose::initialize_indirect_sort (RandomAccessIterator beg, RandomAccessIterator end, std::vector< size_t > &b)
 
template<class RandomAccessIterator >
void Moose::indirectSort (RandomAccessIterator beg, RandomAccessIterator end, std::vector< size_t > &b)
 
template<class RandomAccessIterator , class UserComparisonFunctor >
void Moose::indirectSort (RandomAccessIterator beg, RandomAccessIterator end, std::vector< size_t > &b, UserComparisonFunctor user_comp)
 
template<typename T >
void Moose::applyIndices (T &container, const std::vector< size_t > &indices)
 Uses indices created by the indirectSort function to sort the given container (which must support random access, resizing, and std::swap. More...