SortHelper< T > Class Template Reference

#include <sorthelper.h>

List of all members.

Classes

struct  SortPair

Public Member Functions

 SortHelper (int sizehint)
void Add (T value, int count)
int MaxCount (T *max_value) const
const GenericVector< SortPair
< T > > & 
SortByCount ()
const GenericVector< SortPair
< T > > & 
SortByValue ()

Static Public Member Functions

static int SortPairsByCount (const void *v1, const void *v2)
static int SortPairsByValue (const void *v1, const void *v2)

template<typename T>
class SortHelper< T >


Constructor & Destructor Documentation

template<typename T >
SortHelper< T >::SortHelper ( int  sizehint  )  [inline, explicit]

Member Function Documentation

template<typename T >
void SortHelper< T >::Add ( value,
int  count 
) [inline]
template<typename T >
int SortHelper< T >::MaxCount ( T *  max_value  )  const [inline]
template<typename T >
const GenericVector<SortPair<T> >& SortHelper< T >::SortByCount (  )  [inline]
template<typename T >
const GenericVector<SortPair<T> >& SortHelper< T >::SortByValue (  )  [inline]
template<typename T >
static int SortHelper< T >::SortPairsByCount ( const void *  v1,
const void *  v2 
) [inline, static]
template<typename T >
static int SortHelper< T >::SortPairsByValue ( const void *  v1,
const void *  v2 
) [inline, static]

The documentation for this class was generated from the following file:
Generated on Thu Feb 2 08:19:25 2012 for Tesseract by  doxygen 1.6.3