Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Comparison Functions
[Data Manipulation]

Collaboration diagram for Comparison Functions:


Files

file  psCompare.h
 Comparison functions for sorting routines.

Typedefs

typedef int(* psComparePtrFcn )(const void **a, const void **b)
 A comparison function for sorting elements that are pointers to data, e.g., for psList of pointers to numeric values.
typedef int(* psCompareFcn )(const void *a, const void *b)
 A comparison function for sorting.

Functions

int psCompareS8Ptr (const void **a, const void **b)
 Compare function of psS8 data.
int psCompareS16Ptr (const void **a, const void **b)
 Compare function of psS16 data.
int psCompareS32Ptr (const void **a, const void **b)
 Compare function of psS32 data.
int psCompareS64Ptr (const void **a, const void **b)
 Compare function of psS64 data.
int psCompareU8Ptr (const void **a, const void **b)
 Compare function of psU8 data.
int psCompareU16Ptr (const void **a, const void **b)
 Compare function of psU16 data.
int psCompareU32Ptr (const void **a, const void **b)
 Compare function of psU32 data.
int psCompareU64Ptr (const void **a, const void **b)
 Compare function of psU64 data.
int psCompareF32Ptr (const void **a, const void **b)
 Compare function of psF32 data.
int psCompareF64Ptr (const void **a, const void **b)
 Compare function of psF64 data.
int psCompareDescendingS8Ptr (const void **a, const void **b)
 Compare function of psS8 data.
int psCompareDescendingS16Ptr (const void **a, const void **b)
 Compare function of psS16 data.
int psCompareDescendingS32Ptr (const void **a, const void **b)
 Compare function of psS32 data.
int psCompareDescendingS64Ptr (const void **a, const void **b)
 Compare function of psS64 data.
int psCompareDescendingU8Ptr (const void **a, const void **b)
 Compare function of psU8 data.
int psCompareDescendingU16Ptr (const void **a, const void **b)
 Compare function of psU16 data.
int psCompareDescendingU32Ptr (const void **a, const void **b)
 Compare function of psU32 data.
int psCompareDescendingU64Ptr (const void **a, const void **b)
 Compare function of psU64 data.
int psCompareDescendingF32Ptr (const void **a, const void **b)
 Compare function of psF32 data.
int psCompareDescendingF64Ptr (const void **a, const void **b)
 Compare function of psF64 data.
int psCompareS8 (const void *a, const void *b)
 Compare function of psS8 data.
int psCompareS16 (const void *a, const void *b)
 Compare function of psS16 data.
int psCompareS32 (const void *a, const void *b)
 Compare function of psS32 data.
int psCompareS64 (const void *a, const void *b)
 Compare function of psS64 data.
int psCompareU8 (const void *a, const void *b)
 Compare function of psU8 data.
int psCompareU16 (const void *a, const void *b)
 Compare function of psU16 data.
int psCompareU32 (const void *a, const void *b)
 Compare function of psU32 data.
int psCompareU64 (const void *a, const void *b)
 Compare function of psU64 data.
int psCompareF32 (const void *a, const void *b)
 Compare function of psF32 data.
int psCompareF64 (const void *a, const void *b)
 Compare function of psF64 data.
int psCompareDescendingS8 (const void *a, const void *b)
 Compare function of psS8 data.
int psCompareDescendingS16 (const void *a, const void *b)
 Compare function of psS16 data.
int psCompareDescendingS32 (const void *a, const void *b)
 Compare function of psS32 data.
int psCompareDescendingS64 (const void *a, const void *b)
 Compare function of psS64 data.
int psCompareDescendingU8 (const void *a, const void *b)
 Compare function of psU8 data.
int psCompareDescendingU16 (const void *a, const void *b)
 Compare function of psU16 data.
int psCompareDescendingU32 (const void *a, const void *b)
 Compare function of psU32 data.
int psCompareDescendingU64 (const void *a, const void *b)
 Compare function of psU64 data.
int psCompareDescendingF32 (const void *a, const void *b)
 Compare function of psF32 data.
int psCompareDescendingF64 (const void *a, const void *b)
 Compare function of psF64 data.


Typedef Documentation

typedef int(* psCompareFcn)(const void *a,const void *b)
 

A comparison function for sorting.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

Definition at line 41 of file psCompare.h.

typedef int(* psComparePtrFcn)(const void **a,const void **b)
 

A comparison function for sorting elements that are pointers to data, e.g., for psList of pointers to numeric values.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.

Definition at line 30 of file psCompare.h.


Function Documentation

int psCompareDescendingF32 const void *  a,
const void *  b
 

Compare function of psF32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingF32Ptr const void **  a,
const void **  b
 

Compare function of psF32 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or lessg than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingF64 const void *  a,
const void *  b
 

Compare function of psF64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingF64Ptr const void **  a,
const void **  b
 

Compare function of psF64 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or lessg than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS16 const void *  a,
const void *  b
 

Compare function of psS16 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS16Ptr const void **  a,
const void **  b
 

Compare function of psS16 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS32 const void *  a,
const void *  b
 

Compare function of psS32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS32Ptr const void **  a,
const void **  b
 

Compare function of psS32 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS64 const void *  a,
const void *  b
 

Compare function of psS64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS64Ptr const void **  a,
const void **  b
 

Compare function of psS64 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS8 const void *  a,
const void *  b
 

Compare function of psS8 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingS8Ptr const void **  a,
const void **  b
 

Compare function of psS8 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU16 const void *  a,
const void *  b
 

Compare function of psU16 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU16Ptr const void **  a,
const void **  b
 

Compare function of psU16 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU32 const void *  a,
const void *  b
 

Compare function of psU32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU32Ptr const void **  a,
const void **  b
 

Compare function of psU32 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or lessg than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU64 const void *  a,
const void *  b
 

Compare function of psU64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU64Ptr const void **  a,
const void **  b
 

Compare function of psU64 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or lessg than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU8 const void *  a,
const void *  b
 

Compare function of psU8 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareDescendingU8Ptr const void **  a,
const void **  b
 

Compare function of psU8 data.

For use with psListSort for descending ordering.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively greater than, equal to, or less than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareF32 const void *  a,
const void *  b
 

Compare function of psF32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareF32Ptr const void **  a,
const void **  b
 

Compare function of psF32 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareF64 const void *  a,
const void *  b
 

Compare function of psF64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareF64Ptr const void **  a,
const void **  b
 

Compare function of psF64 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS16 const void *  a,
const void *  b
 

Compare function of psS16 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS16Ptr const void **  a,
const void **  b
 

Compare function of psS16 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS32 const void *  a,
const void *  b
 

Compare function of psS32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS32Ptr const void **  a,
const void **  b
 

Compare function of psS32 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS64 const void *  a,
const void *  b
 

Compare function of psS64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS64Ptr const void **  a,
const void **  b
 

Compare function of psS64 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS8 const void *  a,
const void *  b
 

Compare function of psS8 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareS8Ptr const void **  a,
const void **  b
 

Compare function of psS8 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU16 const void *  a,
const void *  b
 

Compare function of psU16 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU16Ptr const void **  a,
const void **  b
 

Compare function of psU16 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU32 const void *  a,
const void *  b
 

Compare function of psU32 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU32Ptr const void **  a,
const void **  b
 

Compare function of psU32 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU64 const void *  a,
const void *  b
 

Compare function of psU64 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU64Ptr const void **  a,
const void **  b
 

Compare function of psU64 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU8 const void *  a,
const void *  b
 

Compare function of psU8 data.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target

int psCompareU8Ptr const void **  a,
const void **  b
 

Compare function of psU8 data.

For use with psListSort.

Returns:
int an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.
Parameters:
a  first comparison target
b  second comparison target


Generated on Wed Jun 15 11:01:15 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.1