#include <sgga.h>

Public Member Functions

int Compare (const RCloseObjSG &ratio) const
 

Private Member Functions

 RCloseObjSG (size_t id, double ratio)
 

Static Private Member Functions

static int sortOrder (const void *a, const void *b)
 

Private Attributes

size_t Id
 
double Ratio
 

Constructor & Destructor Documentation

RCloseObjSG ( size_t  id,
double  ratio 
)
private

Constructor.

Parameters
idIdentifier.
ratioRatio.

Member Function Documentation

static int sortOrder ( const void *  a,
const void *  b 
)
staticprivate

Static function used to order the object by ratio.

Parameters
aPointer to the first object.
bPointer to the second object.
int Compare ( const RCloseObjSG ratio) const

Compare two ratios.

Parameters
ratioRatio to compare with.
Returns
a number used for sorting purposes.

Member Data Documentation

size_t Id
private

Identifier of the object.

double Ratio
private