116 virtual TH1 *
Draw(
const char *varexp,
const char *selection,
Option_t *option=
"" 127 virtual void Fit(
const char *formula ,
const char *varexp,
const char *selection=
"",
Option_t *option=
"" ,
Option_t *goption=
"" 139 const Char_t *colfirst=
"",
const Char_t *collast=
"")
const;
142 virtual void Project(
const char *hname,
const char *varexp,
const char *selection=
"",
Option_t *option=
"" 194 fRowSize(table.GetRowSize()), fThisTable(&table), fCurrentRow(arowPtr) {;}
196 fRowSize(table.GetRowSize()), fThisTable(&table),
199 iterator(
const iterator& iter) : fRowSize (iter.fRowSize), fThisTable(iter.fThisTable),fCurrentRow(iter.fCurrentRow){}
210 operator void *()
const {
return rowPtr(); }
240 void **
column() {
return fCurrentColPtr = (
void **)(fCurrentRowPtr + fPtrs[fCurrentColIndex]);}
261 void MakeEnd(
UInt_t lastRowIndex);
278 return (at < 0 || at >=
fN)
298 if (!
BoundsOk(
"TTable::operator[]", i))
306 if (!
BoundsOk(
"TTable::operator[]", i))
313 {
Draw(opt,
"",
"", 1000000000, 0); }
319 fCurrentRowIndex(iter.fCurrentRowIndex),
320 fCurrentColIndex(iter.fCurrentColIndex),
322 fCurrentRowPtr(iter.fCurrentRowPtr),
323 fCurrentColPtr(iter.fCurrentColPtr)
virtual void AsString(void *buf, EColumnType type, Int_t width, std::ostream &out) const
AsString represents the value provided via "void *b" with type defined by "name". ...
virtual Long_t InsertRows(const void *rows, Long_t indx, UInt_t nRows=1)
void InsertRows(cons void *row, Long_t indx, UInt_t nRows)
Int_t SetfN(Long_t len)
to be documented
void * ReAllocate()
Reallocate this table leaving only (used rows)+1 allocated GetTableSize() = GetNRows() + 1 returns a ...
void SetUsedRows(Int_t n)
virtual Long_t HasData() const
iterator operator-(Int_t idx)
iterator(const TTable &table, vec_iterator &arowPtr)
virtual Bool_t IsFolder() const
return Folder flag to be used by TBrowse object The table is a folder if
virtual TClass * GetRowClass() const
to be documented
Buffer base class used for serializing objects.
virtual const Char_t * PrintHeader() const
Print general table inforamtion.
void StreamerHeader(TBuffer &b, Version_t version=3)
Read "table parameters first".
static const char * TableDictionary()
TTable & operator=(const TTable &rhs)
TTable assignment operator.
virtual const Char_t * GetType() const
Returns the type of the wrapped C-structure kept as the TNamed title.
virtual void Browse(TBrowser *b)
Wrap each table coulumn with TColumnView object to browse.
virtual TTableDescriptor * GetDescriptorPointer() const
to be documented
virtual Char_t * Print(Char_t *buf, Int_t n) const
Create IDL table defintion (to be used for XDF I/O)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
void operator-=(Int_t idx)
TTable(const char *name=0, Int_t size=0)
Default TTable ctor.
#define ClassDef(name, id)
Bool_t operator!=(const piterator &t) const
virtual const UInt_t * GetIndexArray(Int_t columnIndex) const
virtual void SetNRows(Int_t n)
const std::vector< Long_t >::iterator & Row() const
const Long_t & RowSize() const
virtual void Draw(Option_t *opt)
Default Draw method for all objects.
virtual void Set(Int_t n)
Set array size of TTable object to n longs. If n<0 leave array unchanged.
Bool_t OutOfBoundsError(const char *where, Int_t i) const
Generate an out-of-bounds error. Always returns false.
Int_t CopyRows(const TTable *srcTable, Long_t srcRow=0, Long_t dstRow=0, Long_t nRows=0, Bool_t expand=kFALSE)
CopyRows copies nRows from starting from the srcRow of srcTable to the dstRow in this table upto nRow...
const TTable * fThisTable
A specialized string object used for TTree selections.
const void * At(Int_t i) const
Returns a pointer to the i-th row of the table.
Bool_t operator==(const iterator &t) const
virtual Bool_t EntryLoop(const Char_t *exprFileName, Int_t &action, TObject *obj, Int_t nentries=1000000000, Int_t firstentry=0, Option_t *option="")
EntryLoop creates a CINT bytecode to evaluate the given expressions for all table rows in loop and fi...
void * operator[](Int_t i)
void operator+=(Int_t idx)
Using a TBrowser one can browse all ROOT objects.
virtual TTableDescriptor * GetRowDescriptors() const
to be documented
virtual void SetType(const char *const type)
to be documented
virtual const Char_t * GetColumnComment(Int_t columnIndex) const
Get a comment from the table descriptor.
virtual Int_t AddAt(const void *c)
Add the "row" at the GetNRows() position, and reallocate the table if neccesary, and return the row i...
virtual Long_t AppendRows(const void *row, UInt_t nRows)
Append nRows row of the array "row" to the table return.
virtual UInt_t GetDimensions(Int_t columnIndex) const
virtual void Fit(const char *formula, const char *varexp, const char *selection="", Option_t *option="", Option_t *goption="", Int_t nentries=1000000000, Int_t firstentry=0)
-*-*-*-*-*-*-*-*Fit a projected item(s) from a TTable-*-*-*-*-*-*-*-*-* *-* =========================...
virtual const Char_t * GetColumnName(Int_t columnIndex) const
virtual void Update()
to be documented
Int_t NaN()
return the total number of the NaN for float/double cells of this table Thanks Victor Perevoztchikov ...
virtual void ResetMap(Bool_t wipe=kTRUE)
Clean all filled columns with the pointers to TTableMap if any wipe = kTRUE - delete all object the M...
virtual void DeleteRows(Long_t indx, UInt_t nRows=1)
Delete one or several rows from the table.
std::vector< ULong_t > fPtrs
void operator=(const piterator &iter)
The ROOT global object gROOT contains a list of all defined classes.
iterator(const iterator &iter)
Int_t operator-(const iterator &it) const
virtual ~TTable()
Delete TTable object.
std::vector< Long_t >::iterator vec_iterator
iterator(const TTable &table, vec_const_iterator &arowPtr)
virtual UInt_t GetColumnSize(Int_t columnIndex) const
void StreamerTable(TBuffer &b, Version_t version=3)
Stream an object of class TTable.
iterator & operator=(const iterator &iter)
virtual TTableDescriptor * GetTableDescriptors() const
protected: create a new TTableDescriptor descriptor for this table
Bool_t BoundsOk(const char *where, Int_t at) const
virtual void AddAt(TDataSet *dataset, Int_t idx=0)
Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defi...
void SetTablePointer(void *table)
to be documented
void CopyStruct(Char_t *dest, const Char_t *src)
Copy the C-structure src into the new location the length of the strucutre is defined by this class d...
static EColumnType GetTypeId(const char *typeName)
return the Id of the C basic type by given name return kNAN if the name provided fits no knwn basic n...
static TTable * New(const Char_t *name, const Char_t *type, void *array, UInt_t size)
This static method creates a new TTable object if provided.
virtual Int_t GetColumnIndex(const Char_t *columnName) const
virtual Long_t GetTableSize() const
Returns the number of the allocated rows.
const Char_t * fCurrentRowPtr
Mother of all ROOT objects.
iterator operator+(Int_t idx)
virtual Char_t * MakeExpression(const Char_t *expressions[], Int_t nExpressions)
Create CINT macro to evaluate the user-provided expresssion Expression may contains: ...
typedef void((*Func_t)())
virtual void PrintContents(Option_t *opt="") const
to be documented
static const char * GetTypeName(EColumnType type)
return table type name
virtual void Project(const char *hname, const char *varexp, const char *selection="", Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
-*-*-*-*-*-*-*-*Make a projection of a TTable using selections-*-*-*-*-*-* *-* ======================...
Bool_t operator==(const piterator &t) const
#define dest(otri, vertexptr)
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
Char_t * Create()
Allocate a space for the new table, if any Sleep for a while if space is not available and try again...
void MakeEnd(UInt_t lastRowIndex)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual UInt_t GetTypeSize(Int_t columnIndex) const
Bool_t operator!=(const iterator &t) const
virtual Long_t GetRowSize() const
Returns the size (in bytes) of one table row.
virtual void SetDescriptorPointer(TTableDescriptor *list)
to be documented
piterator(const TTable *t=0, EColumnType type=kPtr)
to be documented
virtual void Delete(Option_t *opt="")
Delete the internal array and free the memory it occupied if this object did own this array...
virtual EColumnType GetColumnType(Int_t columnIndex) const
virtual void Clear(Option_t *opt="")
Deletes the internal array of this class if this object does own its internal table.
static const char * fgTypeName[kEndColumnType]
const TTable & Table() const
virtual void Adopt(Int_t n, void *array)
Adopt array arr into TTable, i.e.
virtual UInt_t GetNumberOfColumns() const
virtual void CopySet(TTable &array)
to be documented
virtual UInt_t GetOffset(Int_t columnIndex) const
void ReAlloc(Int_t newsize)
The table is reallocated if it is an owner of the internal array.
std::vector< Long_t >::const_iterator vec_const_iterator
virtual void Reset(Int_t c=0)
Fill the entire table with byte "c" ; / c=0 "be default".
virtual Int_t Purge(Option_t *opt="")
Shrink the table to free the unused but still allocated rows.