Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CTBsortI Class Template Reference

Function object - Straight insertion sort. More...

#include <CTBsortI.hxx>

List of all members.

Public Methods

void operator() (CTBvector< T > &v)
void operator() (CTBvector< CTBint > &ind, const CTBvector< T > &v)


Detailed Description

template<class T, class C>
class CTBsortI< T, C >

Function object - Straight insertion sort.

This class provides a function object for sorting a vector of type T to ascending order with a comparison operator C. A simple straight insertion sort algorithm is used.

Definition at line 19 of file CTBsortI.hxx.


Member Function Documentation

template<class T, class C>
void CTBsortI< T, C >::operator() CTBvector< T > & v [inline]
 

Sort vector v to ascending order of operator C.

Definition at line 28 of file CTBsortI.icc.

template<class T, class C>
void CTBsortI< T, C >::operator() CTBvector< CTBint > & ind,
const CTBvector< T > & v
[inline]
 

Produce index ind such that v[ind[..]] is sorted by operator C.

Definition at line 52 of file CTBsortI.icc.


The documentation for this class was generated from the following files:
Generated at Fri Oct 24 18:14:10 2003 for CTBbase by doxygen1.2.9-20010812 written by Dimitri van Heesch, © 1997-2001