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

CTBsortS Class Template Reference

Function object - Shell sort. More...

#include <CTBsortS.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 CTBsortS< T, C >

Function object - Shell sort.

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

Definition at line 19 of file CTBsortS.hxx.


Member Function Documentation

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

Sort vector v to ascending order of operator C.

Definition at line 28 of file CTBsortS.icc.

template<class T, class C>
void CTBsortS< 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 59 of file CTBsortS.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