ROOT  6.06/09
Reference Guide
Macros | Typedefs | Functions
TTableSorter.cxx File Reference
#include <stdlib.h>
#include "TTableSorter.h"
#include "TTable.h"
#include "TClass.h"
#include "TDataMember.h"
#include "TDataType.h"
#include "TMemberInspector.h"
+ Include dependency graph for TTableSorter.cxx:

Go to the source code of this file.

Macros

#define BINARYSEARCH(valuetype)
 
#define COMPAREFLOATVALUES(valuetype)
 
#define COMPAREVALUES(valuetype)
 
#define COMPAREORDER(valuetype)   Compare##valuetype
 
#define SEARCHORDER(valuetype)   Search##valuetype
 

Typedefs

typedef Int_t(* CALLQSORT) (const void *, const void *)
 

Functions

 ClassImp (TTableSorter) TTableSorter
 

Macro Definition Documentation

#define BINARYSEARCH (   valuetype)

Definition at line 471 of file TTableSorter.cxx.

#define COMPAREFLOATVALUES (   valuetype)
Value:
int TTableSorter::Search##valuetype (const void *elem1, const void **elem2) { \
valuetype *value1 = (valuetype *)(elem1); \
valuetype *value2 = (valuetype *)(*elem2); \
valuetype diff = *value1-*value2; \
Int_t res = 0; \
if (diff > 0) res = 1; \
else if (diff < 0) res = -1; \
return res; \
} \
int TTableSorter::Compare##valuetype (const void **elem1, const void **elem2) {\
valuetype *value1 = (valuetype *)(*elem1); \
valuetype *value2 = (valuetype *)(*elem2); \
valuetype diff = *value1-*value2; \
Int_t res = 0; \
if (diff > 0 ) res = 1; \
else if (diff < 0) res = -1; \
if (res) return res; \
return int(value1-value2); \
} \
BINARYSEARCH(valuetype)
int Int_t
Definition: RtypesCore.h:41
if(pyself &&pyself!=Py_None)
return
Definition: TBase64.cxx:62
else
Definition: TBase64.cxx:55
Int_t Compare(const void *item1, const void *item2)

Definition at line 560 of file TTableSorter.cxx.

#define COMPAREORDER (   valuetype)    Compare##valuetype

Definition at line 611 of file TTableSorter.cxx.

Referenced by TTableSorter::SetSearchMethod().

#define COMPAREVALUES (   valuetype)
Value:
int TTableSorter::Search##valuetype (const void *elem1, const void **elem2) { \
valuetype *value1 = (valuetype *)(elem1); \
valuetype *value2 = (valuetype *)(*elem2); \
return int(*value1-*value2); \
} \
int TTableSorter::Compare##valuetype (const void **elem1, const void **elem2) { \
valuetype *value1 = (valuetype *)(*elem1); \
valuetype *value2 = (valuetype *)(*elem2); \
valuetype diff = *value1-*value2; \
if (diff ) return diff; \
return int(value1-value2); \
} \
BINARYSEARCH(valuetype)
#define BINARYSEARCH(valuetype)
if(pyself &&pyself!=Py_None)
virtual Int_t Compare(const TObject *obj) const
Compare two TNamed objects.
Definition: TNamed.cxx:74
return
Definition: TBase64.cxx:62

Definition at line 584 of file TTableSorter.cxx.

#define SEARCHORDER (   valuetype)    Search##valuetype

Definition at line 612 of file TTableSorter.cxx.

Referenced by TTableSorter::SetSearchMethod().

Typedef Documentation

typedef Int_t(* CALLQSORT) (const void *, const void *)

Definition at line 21 of file TTableSorter.cxx.

Function Documentation

ClassImp ( TTableSorter  )

Definition at line 82 of file TTableSorter.cxx.