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