11 #ifndef ROOT_TTableSorter
12 #define ROOT_TTableSorter
113 static int SearchInt_t (
const void *,
const void **);
172 virtual const void *
GetKeyAddress(
Int_t indx) {
return (fSortIndex && indx >= 0) ?fSortIndex[indx]:(
void *)(-1);}
void LearnTable()
LearnTable() allows the TTableSorter to learn the structure of the tables used to fill the ntuple...
static int SearchShort_t(const void *, const void **)
union TTableSorter::@201 fValue
static int CompareBool_t(const void **, const void **)
static int SearchLong_t(const void *, const void **)
static int CompareULong_t(const void **, const void **)
Int_t BinarySearch(Float_t value) const
static int CompareFloat_t(const void **, const void **)
pointer to the internal array of TTable object;
virtual Int_t FindFirstKey(const void *key) const
Looks for the first index of the "key" within SORTED table AFTER sorting.
const char * fFirstParentRow
static int CompareInt_t(const void **, const void **)
virtual const char * GetTableTitle() const
to be documented
int compare(double v1, double v2, const std::string &name="", double scale=1.0)
static int CompareShort_t(const void **, const void **)
Bool_t FillIndexArray()
File the array of the pointers and check whether the original table has been sorted to avoid an extra...
Int_t GetIndex(UInt_t sortedIndex) const
returns the original index of the row by its sorted index
static int SearchUChar_t(const void *, const void **)
COMPAREMETHOD fCompareMethod
virtual const char * GetTableType() const
to be documented
const Char_t * fsimpleArray
const char * Data() const
#define ClassDef(name, id)
static int SearchULong_t(const void *, const void **)
The TNamed class is the base class for all named ROOT classes.
static int CompareUShort_t(const void **, const void **)
virtual const void * GetKeyAddress(Int_t indx)
static int CompareChar_t(const void **, const void **)
static int CompareUInt_t(const void **, const void **)
static int SearchBool_t(const void *, const void **)
Int_t(* SEARCHMETHOD)(const void *, const void **)
void SetSearchMethod()
Select search function at once.
const TTable * fParentTable
void BuildSorter(TString &colName, Int_t firstRow, Int_t numberRows)
BuildSorter backs TTableSorter ctor.
void QSort()
Call the standard C run-time library "qsort" function.
static int SearchUInt_t(const void *, const void **)
static int SearchChar_t(const void *, const void **)
static int CompareUChar_t(const void **, const void **)
Int_t BSearch(const void *value) const
to be documented
virtual TTable * GetTable() const
to be documented
TTableSorter & operator=(const TTableSorter &)
Int_t operator()(Float_t value)
static int CompareDouble_t(const void **, const void **)
Int_t SelectSearch(Float_t value) const
const char * At(Int_t i) const
virtual Int_t GetNRows() const
static int SearchInt_t(const void *, const void **)
static int SearchUShort_t(const void *, const void **)
SEARCHMETHOD fSearchMethod
virtual Int_t GetLastFound() const
Int_t(* COMPAREMETHOD)(const void **, const void **)
static int SearchFloat_t(const void *, const void **)
Int_t operator[](Int_t value) const
virtual Int_t GetFirstRow() const
TTable::EColumnType fColType
virtual const char * GetTableName() const
to be documented
static int CompareLong_t(const void **, const void **)
virtual ~TTableSorter()
to be documented
static int SearchDouble_t(const void *, const void **)
virtual const char * GetColumnName() const
virtual Int_t CountKey(const void *key, Int_t firstIndx=0, Bool_t bSearch=kTRUE, Int_t *firstRow=0) const
CountKey counts the number of rows with the key value equal "key".
void SetSimpleArray(Int_t arraySize, Int_t firstRow, Int_t numberRows)
Set some common parameteres for the "simple" arrays.
virtual Int_t CountKeys() const
Counts the number of different key values.