TOBI SignalServer  0.1
template<class T>
void tobiss::SampleBlock< T >::sort ( std::vector< T > &  v,
std::vector< boost::uint32_t >  order,
boost::uint32_t  nr_blocks 
) [private]

Sort a given sample vector by an given order (unordered) vector.

Parameters:
[in]vA vector containing samples to be ordered.
[in]orderA vector containing indices to order (must be in the same order like v, blocksize >1 is allowed).
[in]nr_blocksThe number of blocks in vector v.

Sort sorts two vectors v and order, whereby values stored in order (has to be unordered) are used to order both v and order. Bubble-sort is used as a sorting algorithm.

Definition at line 536 of file sample_block.h.

All Data Structures Files Functions Variables