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]);}
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),
321 fRowSize(iter.fRowSize),
322 fCurrentRowPtr(iter.fCurrentRowPtr),
323 fCurrentColPtr(iter.fCurrentColPtr)
338 if (fCurrentColIndex >= fPtrs.size()) {
339 fCurrentColIndex = 0;
341 fCurrentRowPtr += fRowSize;
350 if (fCurrentColIndex > 0) {
352 fCurrentColIndex = fPtrs.size()-1;
354 fCurrentRowPtr -= fRowSize;
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
virtual TClass * GetRowClass() const
to be documented
void * ReAllocate()
Reallocate this table leaving only (used rows)+1 allocated GetTableSize() = GetNRows() + 1 returns a ...
void SetUsedRows(Int_t n)
const TTable & Table() const
iterator operator-(Int_t idx)
virtual Long_t GetRowSize() const
Returns the size (in bytes) of one table row.
iterator(const TTable &table, vec_iterator &arowPtr)
virtual UInt_t GetDimensions(Int_t columnIndex) const
Buffer base class used for serializing objects.
virtual const Char_t * GetType() const
Returns the type of the wrapped C-structure kept as the TNamed title.
void StreamerHeader(TBuffer &b, Version_t version=3)
Read "table parameters first".
virtual UInt_t GetColumnSize(Int_t columnIndex) const
static const char * TableDictionary()
Int_t operator-(const iterator &it) const
TTable & operator=(const TTable &rhs)
TTable assignment operator.
virtual void Browse(TBrowser *b)
Wrap each table coulumn with TColumnView object to browse.
virtual UInt_t GetTypeSize(Int_t columnIndex) const
virtual TTableDescriptor * GetTableDescriptors() const
virtual const Char_t * PrintHeader() const
Print general table inforamtion.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a primitive as a C++ statement(s) on output stream "out".
virtual UInt_t GetNumberOfColumns() const
void operator-=(Int_t idx)
virtual UInt_t GetOffset(Int_t columnIndex) const
TTable(const char *name=0, Int_t size=0)
Default TTable ctor.
#define ClassDef(name, id)
virtual void PrintContents(Option_t *opt="") const
to be documented
virtual void SetNRows(Int_t n)
std::map< std::string, std::string >::const_iterator iter
virtual EColumnType GetColumnType(Int_t columnIndex) const
Bool_t operator!=(const iterator &t) 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.
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.
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 UInt_t * GetIndexArray(Int_t columnIndex) const
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
Bool_t OutOfBoundsError(const char *where, Int_t i) const
Generate an out-of-bounds error. Always returns false.
virtual const Char_t * GetColumnName(Int_t columnIndex) const
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 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 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)
const std::vector< Long_t >::iterator & Row() const
The ROOT global object gROOT contains a list of all defined classes.
Bool_t BoundsOk(const char *where, Int_t at) const
iterator(const iterator &iter)
Bool_t operator!=(const piterator &t) const
virtual ~TTable()
Delete TTable object.
std::vector< Long_t >::iterator vec_iterator
Bool_t operator==(const iterator &t) const
virtual Int_t GetColumnIndex(const Char_t *columnName) const
iterator(const TTable &table, vec_const_iterator &arowPtr)
void StreamerTable(TBuffer &b, Version_t version=3)
Stream an object of class TTable.
iterator & operator=(const iterator &iter)
Bool_t operator==(const piterator &t) 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 Long_t GetTableSize() const
Returns the number of the allocated rows.
const Char_t * fCurrentRowPtr
const Long_t & RowSize() const
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)())
Bool_t operator==(const TDatime &d1, const TDatime &d2)
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*-*-*-*-*-*-* *-* ====================...
#define dest(otri, vertexptr)
Char_t * Create()
Allocate a space for the new table, if any Sleep for a while if space is not available and try again...
const void * At(Int_t i) const
Returns a pointer to the i-th row of the table.
void MakeEnd(UInt_t lastRowIndex)
virtual TTableDescriptor * GetDescriptorPointer() const
to be documented
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 Long_t HasData() const
virtual Bool_t IsFolder() const
return Folder flag to be used by TBrowse object The table is a folder if
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]
virtual Char_t * Print(Char_t *buf, Int_t n) const
Create IDL table defintion (to be used for XDF I/O)
virtual void Adopt(Int_t n, void *array)
Adopt array arr into TTable, i.e.
virtual void CopySet(TTable &array)
to be documented
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 const Char_t * GetColumnComment(Int_t columnIndex) const
Get a comment from the table descriptor.
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 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.