Classes | Macros | Functions
vbl_sort.h File Reference

Collection of common predicates for sorting. More...

Go to the source code of this file.

Classes

struct  vbl_sort_helper< T >
 Collection of common predicates for sorting. More...
 

Macros

#define VBL_SORT_INSTANTIATE(T)   template struct vbl_sort_helper<T >
 

Functions

int vbl_sort_double_ascending (double const &, double const &)
 Predicate that will sort doubles in ascending order. More...
 
int vbl_sort_double_descending (double const &, double const &)
 Predicate that will sort in descending order. More...
 
int vbl_sort_int_ascending (int const &, int const &)
 Ascending integers. More...
 
int vbl_sort_int_descending (int const &, int const &)
 Descending integers. More...
 

Detailed Description

Collection of common predicates for sorting.

Author
Andrew W. Fitzgibbon, Oxford RRG
Date
19 Nov 97
 Modifications
 971119 AWF Initial version.
 PDA (Manchester) 21/03/2001: Tidied up the documentation

Definition in file vbl_sort.h.

Macro Definition Documentation

◆ VBL_SORT_INSTANTIATE

#define VBL_SORT_INSTANTIATE (   T)    template struct vbl_sort_helper<T >

Definition at line 37 of file vbl_sort.h.

Function Documentation

◆ vbl_sort_double_ascending()

int vbl_sort_double_ascending ( double const &  ,
double const &   
)

Predicate that will sort doubles in ascending order.

Definition at line 11 of file vbl_sort.cxx.

◆ vbl_sort_double_descending()

int vbl_sort_double_descending ( double const &  ,
double const &   
)

Predicate that will sort in descending order.

Definition at line 23 of file vbl_sort.cxx.

◆ vbl_sort_int_ascending()

int vbl_sort_int_ascending ( int const &  ,
int const &   
)

Ascending integers.

Definition at line 35 of file vbl_sort.cxx.

◆ vbl_sort_int_descending()

int vbl_sort_int_descending ( int const &  ,
int const &   
)

Descending integers.

Definition at line 47 of file vbl_sort.cxx.