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);}
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...
virtual TTable * GetTable() const
to be documented
static int SearchShort_t(const void *, const void **)
static int CompareBool_t(const void **, const void **)
static int SearchLong_t(const void *, const void **)
static int CompareULong_t(const void **, const void **)
static int CompareFloat_t(const void **, const void **)
pointer to the internal array of TTable object;
const char * fFirstParentRow
static int CompareInt_t(const void **, const void **)
int compare(double v1, double v2, const std::string &name="", double scale=1.0)
Int_t SelectSearch(Float_t value) 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".
virtual Int_t GetFirstRow() const
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 BSearch(const void *value) const
to be documented
static int SearchUChar_t(const void *, const void **)
COMPAREMETHOD fCompareMethod
virtual Int_t CountKeys() const
Counts the number of different key values.
const Char_t * fsimpleArray
#define ClassDef(name, id)
virtual const char * GetTableType() const
to be documented
static int SearchULong_t(const void *, const void **)
The TNamed class is the base class for all named ROOT classes.
Int_t operator[](Int_t value) const
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
virtual Int_t GetLastFound() const
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 BinarySearch(Float_t value) const
union TTableSorter::@160 fValue
TTableSorter & operator=(const TTableSorter &)
Int_t operator()(Float_t value)
virtual Int_t FindFirstKey(const void *key) const
Looks for the first index of the "key" within SORTED table AFTER sorting.
virtual Int_t GetNRows() const
static int CompareDouble_t(const void **, const void **)
static int SearchInt_t(const void *, const void **)
static int SearchUShort_t(const void *, const void **)
SEARCHMETHOD fSearchMethod
const char * At(Int_t i) const
Int_t(* COMPAREMETHOD)(const void **, const void **)
static int SearchFloat_t(const void *, const void **)
TTable::EColumnType fColType
virtual const char * GetColumnName() const
static int CompareLong_t(const void **, const void **)
virtual ~TTableSorter()
to be documented
static int SearchDouble_t(const void *, const void **)
void SetSimpleArray(Int_t arraySize, Int_t firstRow, Int_t numberRows)
Set some common parameteres for the "simple" arrays.
virtual const char * GetTableName() const
to be documented
virtual const char * GetTableTitle() const
to be documented
const char * Data() const