35 TTable *GetThisTable() {
return fTable; }
36 const TTable *GetThisTable()
const {
return fTable; }
37 static void *GetOffset(
const void *base,ULong_t offset) {
return (
void *)((Char_t *)base + offset);}
38 TChair() : fTable(0), fLastIndx(0), fLastRow(0) { ; }
42 TChair(
TTable *table) : fTable(table),fLastIndx(0),fLastRow(0) { ; }
47 virtual void Adopt(Int_t n,
void *array){GetThisTable()->
Adopt(n,array);}
49 virtual void AddAt(
const void *c, Int_t i){GetThisTable()->
AddAt(c,i);}
50 const void *At(Int_t i)
const {
return GetThisTable()->
At(i);}
52 virtual void CopySet(
TChair &chair){GetThisTable()->
CopySet(*chair.GetThisTable());}
53 Int_t CopyRows(
const TChair *srcChair, Int_t srcRow=0, Int_t dstRow=0, Int_t nRows=0, Bool_t expand=kFALSE)
54 {
return GetThisTable()->
CopyRows(srcChair->GetThisTable(),srcRow,dstRow,nRows,expand);}
55 virtual void Draw(Option_t *opt){GetThisTable()->Draw(opt);}
56 virtual TH1 *Draw(TCut varexp, TCut selection, Option_t *option=
"",
57 Int_t nentries=1000000000, Int_t firstentry=0)
58 {
return GetThisTable()->Draw(varexp,selection,option,nentries,firstentry);}
59 virtual TH1 *Draw(
const char *varexp,
const char *selection, Option_t *option=
"",
60 Int_t nentries=1000000000, Int_t firstentry=0) {
61 return GetThisTable()->Draw(varexp,selection,option,nentries,firstentry);}
62 virtual Char_t *GetArray()
const {
return (Char_t *)GetThisTable()->GetArray();}
63 virtual TClass *GetRowClass()
const {
return GetThisTable()->
GetRowClass();}
64 virtual Long_t GetNRows()
const {
return GetThisTable()->
GetNRows();}
65 virtual Long_t GetRowSize()
const {
return GetThisTable()->
GetRowSize();}
66 virtual Long_t GetTableSize()
const{
return GetThisTable()->
GetTableSize();}
67 const TTable *Table()
const {
return fTable; }
69 virtual const Char_t *GetType()
const {
return GetThisTable()->
GetType();}
70 virtual void Fit(
const char *formula ,
const char *varexp,
const char *selection=
"",Option_t *option=
"",Option_t *goption=
"",
71 Int_t nentries=1000000000, Int_t firstentry=0) {
72 GetThisTable()->
Fit(formula,varexp,selection,option,goption,nentries,firstentry);}
73 virtual Long_t HasData()
const {
return GetThisTable()->HasData();}
74 virtual Bool_t IsFolder()
const {
return GetThisTable()->
IsFolder();}
75 virtual void ls(Option_t *option=
"")
const {GetThisTable()->
ls(option);}
76 virtual void ls(Int_t deep)
const {GetThisTable()->
ls(deep);}
77 Int_t NaN() {
return GetThisTable()->
NaN();}
78 virtual Char_t *MakeExpression(
const Char_t *expressions[],Int_t nExpressions)
80 virtual Char_t *Print(Char_t *buf,Int_t n)
const {
return GetThisTable()->
Print(buf, n);}
81 virtual void Print(Option_t *opt=
"")
const {GetThisTable()->
Print(opt);}
82 virtual const Char_t *Print(Int_t row, Int_t rownumber=10,
83 const Char_t *colfirst=
"",
const Char_t *collast=
"")
const {
84 return GetThisTable()->
Print(row,rownumber,colfirst,collast); }
85 virtual const Char_t *PrintHeader()
const {
return GetThisTable()->
PrintHeader();}
86 virtual Int_t
Purge(Option_t *opt=
"") {
return GetThisTable()->
Purge(opt);}
88 void *ReAllocate(Int_t newsize) {
return GetThisTable()->
ReAllocate(newsize); }
89 void *ReAllocate() {
return GetThisTable()->
ReAllocate(); }
90 virtual void SavePrimitive(std::ostream &out, Option_t *option=
"") {GetThisTable()->
SavePrimitive(out,option);}
92 virtual void Set(Int_t n) {GetThisTable()->
Set(n);}
93 virtual void Set(Int_t n, Char_t *array) {GetThisTable()->
Set(n,array);}
94 virtual void SetNRows(Int_t n) {GetThisTable()->SetNRows(n);}
95 virtual void Reset(Int_t c=0) {GetThisTable()->
Reset(c) ;}
98 void *operator[](Int_t i);
99 const void *operator[](Int_t i)
const;
107 inline void *TChair::operator[](Int_t i)
112 return (
void *)((
char *)GetArray()+i*GetRowSize());
115 inline const void *TChair::operator[](Int_t i)
const
119 return (
const void *)((
char *)GetArray()+i*GetRowSize());
void * ReAllocate(Int_t newsize)
virtual TClass * GetRowClass() const
to be documented
virtual Long_t GetRowSize() const
Returns the size (in bytes) of one table row.
virtual void AddAt(TDataSet *dataset, Int_t idx)
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 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 void ls(Int_t deep) const
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)
virtual void Browse(TBrowser *b)
Browse this dataset (called by TBrowser).
virtual void ls(Option_t *option="") const
virtual TTableDescriptor * GetRowDescriptors() const
to be documented
virtual Int_t Purge(Option_t *opt="")
virtual Long_t GetNRows() const
Returns the number of the used rows for the wrapped table.
virtual void ls(Option_t *option="") const
virtual Int_t AddAt(const void *c)
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)
virtual void Update()
to be documented
virtual void AddAt(TDataSet *dataset, Int_t idx=0)
virtual void Update(TDataSet *set, UInt_t opt=0)
virtual Long_t GetTableSize() const
Returns the number of the allocated rows.
virtual Char_t * MakeExpression(const Char_t *expressions[], Int_t nExpressions)
const void * At(Int_t i) const
Returns a pointer to the i-th row of the table.
virtual Bool_t IsFolder() const
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)
virtual void CopySet(TTable &array)
to be documented
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.