Logo ROOT   6.12/07
Reference Guide
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
TTable Class Reference

Definition at line 48 of file TTable.h.

Classes

class  iterator
 
class  piterator
 

Public Types

enum  EColumnType {
  kNAN, kFloat, kInt, kLong,
  kShort, kDouble, kUInt, kULong,
  kUShort, kUChar, kChar, kPtr,
  kBool, kEndColumnType
}
 
enum  ETableBits { kIsNotOwn = BIT(23) }
 
- Public Types inherited from TDataSet
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 
enum  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5),
  kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 

Public Member Functions

 TTable (const char *name=0, Int_t size=0)
 Default TTable ctor. More...
 
 TTable (const char *name, Int_t n, Int_t size)
 Create TTable object and set array size to n longs. More...
 
 TTable (const char *name, Int_t n, Char_t *array, Int_t size)
 Create TTable object and initialize it with values of array. More...
 
 TTable (const char *name, const char *type, Int_t n, Char_t *array, Int_t size)
 Create TTable object and initialize it with values of array. More...
 
 TTable (const TTable &table)
 Copy constructor. More...
 
virtual ~TTable ()
 Delete TTable object. More...
 
virtual Int_t AddAt (const void *c)
 Add the "row" at the GetNRows() position, and reallocate the table if neccesary, and return the row index the "row" has occupied. More...
 
virtual void AddAt (const void *c, Int_t i)
 Add one element ("row") of structure at position "i". More...
 
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 defined by either TList::AddAt or TObjArray::AddAt methods. More...
 
virtual void Adopt (Int_t n, void *array)
 Adopt array arr into TTable, i.e. More...
 
virtual Long_t AppendRows (const void *row, UInt_t nRows)
 Append nRows row of the array "row" to the table return. More...
 
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". More...
 
const voidAt (Int_t i) const
 Returns a pointer to the i-th row of the table. More...
 
virtual void Browse (TBrowser *b)
 Wrap each table coulumn with TColumnView object to browse. More...
 
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 nRows or by the end of this table. More...
 
virtual void CopySet (TTable &array)
 to be documented More...
 
virtual void DeleteRows (Long_t indx, UInt_t nRows=1)
 Delete one or several rows from the table. More...
 
virtual void Draw (Option_t *opt)
 Default Draw method for all objects. More...
 
virtual TH1Draw (TCut varexp, TCut selection, Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
 Draw expression varexp for specified entries. More...
 
virtual TH1Draw (const char *varexp, const char *selection, Option_t *option="", Int_t nentries=1000000000, Int_t firstentry=0)
 Draw expression varexp for specified entries. More...
 
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. More...
 
voidGetArray () const
 
virtual const Char_tGetColumnComment (Int_t columnIndex) const
 Get a comment from the table descriptor. More...
 
virtual Int_t GetColumnIndex (const Char_t *columnName) const
 
virtual const Char_tGetColumnName (Int_t columnIndex) const
 
virtual UInt_t GetColumnSize (Int_t columnIndex) const
 
virtual Int_t GetColumnSize (const Char_t *columnName=0) const
 
virtual EColumnType GetColumnType (Int_t columnIndex) const
 
virtual EColumnType GetColumnType (const Char_t *columnName=0) const
 
virtual UInt_t GetDimensions (Int_t columnIndex) const
 
virtual Int_t GetDimensions (const Char_t *columnName=0) const
 
virtual const UInt_tGetIndexArray (Int_t columnIndex) const
 
virtual Long_t GetNRows () const
 Returns the number of the used rows for the wrapped table. More...
 
virtual UInt_t GetNumberOfColumns () const
 
virtual UInt_t GetOffset (Int_t columnIndex) const
 
virtual Int_t GetOffset (const Char_t *columnName=0) const
 
virtual TClassGetRowClass () const
 to be documented More...
 
virtual TTableDescriptorGetRowDescriptors () const
 to be documented More...
 
virtual Long_t GetRowSize () const
 Returns the size (in bytes) of one table row. More...
 
Int_t GetSize () const
 
virtual TTableDescriptorGetTableDescriptors () const
 protected: create a new TTableDescriptor descriptor for this table More...
 
virtual Long_t GetTableSize () const
 Returns the number of the allocated rows. More...
 
virtual const Char_tGetType () const
 Returns the type of the wrapped C-structure kept as the TNamed title. More...
 
virtual UInt_t GetTypeSize (Int_t columnIndex) const
 
virtual Int_t GetTypeSize (const Char_t *columnName=0) const
 
virtual Long_t HasData () const
 
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) More...
 
virtual Bool_t IsFolder () const
 return Folder flag to be used by TBrowse object The table is a folder if More...
 
virtual Char_tMakeExpression (const Char_t *expressions[], Int_t nExpressions)
 Create CINT macro to evaluate the user-provided expresssion Expression may contains: More...
 
Int_t NaN ()
 return the total number of the NaN for float/double cells of this table Thanks Victor Perevoztchikov More...
 
TTableoperator= (const TTable &rhs)
 TTable assignment operator. More...
 
voidoperator[] (Int_t i)
 
const voidoperator[] (Int_t i) const
 
piterator pbegin ()
 
piterator pend ()
 
virtual Char_tPrint (Char_t *buf, Int_t n) const
 Create IDL table defintion (to be used for XDF I/O) More...
 
virtual void Print (Option_t *opt="") const
 Print TNamed name and title. More...
 
virtual const Char_tPrint (Int_t row, Int_t rownumber=10, const Char_t *colfirst="", const Char_t *collast="") const
 Print the contents of internal table per COLUMN. More...
 
virtual void PrintContents (Option_t *opt="") const
 to be documented More...
 
virtual const Char_tPrintHeader () const
 Print general table inforamtion. More...
 
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. More...
 
virtual Int_t Purge (Option_t *opt="")
 Shrink the table to free the unused but still allocated rows. More...
 
voidReAllocate (Int_t newsize)
 Reallocate this table leaving only <newsize> allocated GetTableSize() = newsize; returns a pointer to the first row of the reallocated table Note: The table is reallocated if it is an owner of the internal array. More...
 
voidReAllocate ()
 Reallocate this table leaving only (used rows)+1 allocated GetTableSize() = GetNRows() + 1 returns a pointer to the first row of the reallocated table Note: The table is reallocated if it is an owner of the internal array. More...
 
virtual void Reset (Int_t c=0)
 Fill the entire table with byte "c" ; / c=0 "be default". More...
 
virtual void ResetMap (Bool_t wipe=kTRUE)
 Clean all filled columns with the pointers to TTableMap if any wipe = kTRUE - delete all object the Map's point to kFALSE - zero pointer, do not call "delete" though. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
virtual void Set (Int_t n)
 Set array size of TTable object to n longs. If n<0 leave array unchanged. More...
 
virtual void Set (Int_t n, Char_t *array)
 Set array size of TTable object to n longs and copy array. More...
 
virtual void SetNRows (Int_t n)
 
virtual void Update ()
 to be documented More...
 
virtual void Update (TDataSet *set, UInt_t opt=0)
 Kill the table current data and adopt those from set. More...
 
- Public Member Functions inherited from TDataSet
 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 std::cout << "ctor for " << GetName() << " - " << GetTitle() << std::endl; More...
 
 TDataSet (const TDataSet &src, EDataSetPass iopt=kAll)
 Creates TDataSet (clone) with a topology similar with TDataSet *pattern. More...
 
 TDataSet (TNode &src)
 This copy ctor has been depricated (left for thwe sake of the backweard compatibility) More...
 
virtual ~TDataSet ()
 std::cout << "Default destructor for " << GetName() << " - " << GetTitle() << std::endl; More...
 
virtual void Add (TDataSet *dataset)
 
virtual void AddAtAndExpand (TDataSet *dataset, Int_t idx=0)
 !!!! Under construction !!!!! Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods More...
 
virtual void AddFirst (TDataSet *dataset)
 Add TDataSet object at the beginning of the dataset list of this dataset. More...
 
virtual void AddLast (TDataSet *dataset)
 Add TDataSet object at the end of the dataset list of this dataset. More...
 
TDataSetAt (Int_t idx) const
 
virtual TObjectClone (const char *newname="") const
 the custom implementation fo the TObject::Clone More...
 
virtual TDataSetFind (const char *path) const
 Full description see: TDataSetIter::Find. More...
 
virtual TDataSetFindByName (const char *name, const char *path="", Option_t *opt="") const
 Full description see: TDataSetIter::Find. More...
 
virtual TDataSetFindByPath (const char *path) const
 Aliase for TDataSet::Find(const Char_t *path) method. More...
 
virtual TDataSetFindByTitle (const char *title, const char *path="", Option_t *opt="") const
 Full description see: TDataSetIter::Find. More...
 
TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
TObjectFindObject (const TObject *o) const
 Must be redefined in derived classes. More...
 
virtual TDataSetFirst () const
 Return the first object in the list. Returns 0 when list is empty. More...
 
virtual TSeqCollectionGetCollection () const
 
TListGetList () const
 
virtual Int_t GetListSize () const
 
TObjectGetMother () const
 
TObjArrayGetObjArray () const
 
virtual TObjectGetObject () const
 The depricated method (left here for the sake of the backward compatibility) More...
 
virtual TDataSetGetParent () const
 
virtual TDataSetInstance () const
 apply the class default ctor to instantiate a new object of the same kind. More...
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset. More...
 
virtual Bool_t IsEmpty () const
 return kTRUE if the "internal" collection has no member More...
 
virtual Bool_t IsMarked () const
 
virtual Bool_t IsThisDir (const char *dirname, int len=-1, int ignorecase=0) const
 Compare the name of the TDataSet with "dirname" ignorercase flags indicates whether the comparision is case sensitive. More...
 
virtual TDataSetLast () const
 Return the last object in the list. Returns 0 when list is empty. More...
 
virtual void ls (Option_t *option="") const
 // ls(Option_t <em>option) // // option - defines the path to be listed // = "</em>" - means print all levels // // More...
 
virtual void ls (Int_t depth) const
 // ls(Int_t depth) // // Prints the list of the this TDataSet. More...
 
void Mark ()
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
void MarkAll ()
 Mark all members of this dataset. More...
 
virtual TDataSetNext () const
 Return the object next to this one in the parent structure This convinient but time-consuming. More...
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *), Int_t depth=0)
 // Pass (callback,depth) // // Calls callback(this) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // // More...
 
virtual EDataSetPass Pass (EDataSetPass(*callback)(TDataSet *, void *), void *user, Int_t depth=0)
 // Pass (callback,user,depth) // // Calls callback(this,user) for all datasets those recursively // // Parameter: // ========= // Int_t depth >0 the number of levels to be passed // =0 all levels will be passed // // Return (this value mast be returned by the user's callback): // ====== // kContinue - continue passing // kPrune - stop passing the current branch, go to the next one// kUp - stop passing, leave the current branch, // return to previous level and continue // kStop - stop passing, leave all braches // // More...
 
virtual TString Path () const
 return the full path of this data set More...
 
virtual TDataSetPrev () const
 Return the object that is previous to this one in the parent structure This convinient but time-consuming. More...
 
virtual void Remove (TDataSet *set)
 Remiove the "set" from this TDataSet. More...
 
virtual TDataSetRemoveAt (Int_t idx)
 Remove object from the "idx" cell of this set and return the pointer to the removed object if any. More...
 
virtual void SetMother (TDataSet *parent=0)
 
virtual void SetObject (TObject *obj)
 The depricated method (left here for the sake of the backward compatibility) More...
 
virtual void SetParent (TDataSet *parent=0)
 Break the "parent" relationship with the current object parent if present parent != 0 Makes this object the "Structural Member" of the "parent" dataset = 0 Makes this object the "pure Associator", i.e it makes this object the "Structural Member" of NO other TDataSet. More...
 
virtual void SetWrite ()
 One should not use this method but TDataSet::Write instead This method os left here for the sake of the backward compatibility To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
virtual void Shunt (TDataSet *newParent=0)
 Remove the object from the original and add it to dataset TDataSet dataset != 0 - Make this object the "Structural Member" of "dataset" = 0 - Make this object "Orphan". More...
 
virtual void Sort ()
 Sort recursively all members of the TDataSet with TList::Sort method. More...
 
void UnMark ()
 
void UnMarkAll ()
 UnMark all members of this dataset. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 To Write object first we should temporary break the the backward fParent pointer (otherwise ROOT follows this links and will pull fParent out too. More...
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
virtual ~TNamed ()
 TNamed destructor. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
ULong_t CheckedHash ()
 Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 

Static Public Member Functions

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 name. More...
 
static const char * GetTypeName (EColumnType type)
 return table type name More...
 
static TTableNew (const Char_t *name, const Char_t *type, void *array, UInt_t size)
 This static method creates a new TTable object if provided. More...
 
static const char * TableDictionary ()
 
- Static Public Member Functions inherited from TDataSet
static TDataSetGetMainSet ()
 return pointer to the main dataset More...
 
static TDataSetinstance ()
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Static Public Attributes

static const char * fgTypeName [kEndColumnType]
 

Protected Member Functions

Bool_t BoundsOk (const char *where, Int_t at) const
 
virtual void Clear (Option_t *opt="")
 Deletes the internal array of this class if this object does own its internal table. More...
 
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 descriptor. More...
 
Char_tCreate ()
 Allocate a space for the new table, if any Sleep for a while if space is not available and try again. More...
 
virtual void Delete (Option_t *opt="")
 Delete the internal array and free the memory it occupied if this object did own this array. More...
 
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 fill the appropriated histograms. More...
 
virtual TTableDescriptorGetDescriptorPointer () const
 to be documented More...
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 Generate an out-of-bounds error. Always returns false. More...
 
void ReAlloc (Int_t newsize)
 The table is reallocated if it is an owner of the internal array. More...
 
virtual void SetDescriptorPointer (TTableDescriptor *list)
 to be documented More...
 
Int_t SetfN (Long_t len)
 to be documented More...
 
void SetTablePointer (void *table)
 to be documented More...
 
virtual void SetType (const char *const type)
 to be documented More...
 
void SetUsedRows (Int_t n)
 
void StreamerHeader (TBuffer &b, Version_t version=3)
 Read "table parameters first". More...
 
void StreamerTable (TBuffer &b, Version_t version=3)
 Stream an object of class TTable. More...
 
- Protected Member Functions inherited from TDataSet
 TDataSet (const char *name, const char *title)
 
void AddMain (TDataSet *set)
 add data set to main data set More...
 
TDataSetGetRealParent ()
 return real parent More...
 
void MakeCollection ()
 Create the internal container at once if any. More...
 
virtual void SetMother (TObject *mother)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 

Static Protected Member Functions

static const char * TableDictionary (const char *className, const char *structName, TTableDescriptor *&ColDescriptors)
 Query the TClass instance for the C-stucture dicitonary This method is to be used with TableImp CPP macro (see $ROOTSYS/table/inc/Ttypes.h. More...
 
- Static Protected Member Functions inherited from TDataSet
static EDataSetPass SortIt (TDataSet *ds)
 
static EDataSetPass SortIt (TDataSet *ds, void *user)
 

Protected Attributes

Long_t fMaxIndex
 
Int_t fN
 
Long_t fSize
 
Char_tfTable
 
- Protected Attributes inherited from TDataSet
TSeqCollectionfList
 
TDataSetfParent
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

Friends

class St_XDFFile
 
class TDataSet
 

Additional Inherited Members

- Static Protected Attributes inherited from TDataSet
static TDataSetfgMainSet = &mainSet
 

#include <TTable.h>

Inheritance diagram for TTable:
[legend]

Member Enumeration Documentation

◆ EColumnType

Enumerator
kNAN 
kFloat 
kInt 
kLong 
kShort 
kDouble 
kUInt 
kULong 
kUShort 
kUChar 
kChar 
kPtr 
kBool 
kEndColumnType 

Definition at line 82 of file TTable.h.

◆ ETableBits

Enumerator
kIsNotOwn 

Definition at line 85 of file TTable.h.

Constructor & Destructor Documentation

◆ TTable() [1/5]

TTable::TTable ( const char *  name = 0,
Int_t  size = 0 
)

Default TTable ctor.

Definition at line 1030 of file TTable.cxx.

◆ TTable() [2/5]

TTable::TTable ( const char *  name,
Int_t  n,
Int_t  size 
)

Create TTable object and set array size to n longs.

Definition at line 1039 of file TTable.cxx.

◆ TTable() [3/5]

TTable::TTable ( const char *  name,
Int_t  n,
Char_t array,
Int_t  size 
)

Create TTable object and initialize it with values of array.

Definition at line 1048 of file TTable.cxx.

◆ TTable() [4/5]

TTable::TTable ( const char *  name,
const char *  type,
Int_t  n,
Char_t array,
Int_t  size 
)

Create TTable object and initialize it with values of array.

Definition at line 1057 of file TTable.cxx.

◆ TTable() [5/5]

TTable::TTable ( const TTable table)

Copy constructor.

Definition at line 1068 of file TTable.cxx.

◆ ~TTable()

TTable::~TTable ( )
virtual

Delete TTable object.

Definition at line 1097 of file TTable.cxx.

Member Function Documentation

◆ AddAt() [1/3]

Int_t TTable::AddAt ( const void row)
virtual

Add the "row" at the GetNRows() position, and reallocate the table if neccesary, and return the row index the "row" has occupied.

row == 0 see method TTable::AddAt(const void *row, Int_t i)

Reimplemented in TTableDescriptor.

Definition at line 1121 of file TTable.cxx.

◆ AddAt() [2/3]

void TTable::AddAt ( const void row,
Int_t  i 
)
virtual

Add one element ("row") of structure at position "i".

Check for out of bounds.

   If the row == 0 the "i" cell is still occupied and

filled with the pattern "ff"

Reimplemented in TTableDescriptor.

Definition at line 1137 of file TTable.cxx.

◆ AddAt() [3/3]

void TTable::AddAt ( TDataSet dataset,
Int_t  idx = 0 
)
inlinevirtual

Add TDataSet object at the "idx" position in ds or at the end of the dataset The final result is defined by either TList::AddAt or TObjArray::AddAt methods.

Reimplemented from TDataSet.

Reimplemented in TTableDescriptor.

Definition at line 268 of file TTable.h.

◆ Adopt()

void TTable::Adopt ( Int_t  n,
void arr 
)
virtual

Adopt array arr into TTable, i.e.

don't copy arr but use it directly in TTable. User may not delete arr, TTable dtor will do it.

Definition at line 1106 of file TTable.cxx.

◆ AppendRows()

Long_t TTable::AppendRows ( const void row,
UInt_t  nRows 
)
virtual

Append nRows row of the array "row" to the table return.

  • the new table size (# of table rows)
  • 0 if the object doesn't own the internal array and can not expand it

Definition at line 1177 of file TTable.cxx.

◆ AsString()

void TTable::AsString ( void buf,
EColumnType  type,
Int_t  width,
std::ostream &  out 
) const
virtual

AsString represents the value provided via "void *b" with type defined by "name".

void *buf - the pointer to the value to be printed out. type - the basic data type for the value above width - the number of psotion to be used to print the value out

Definition at line 228 of file TTable.cxx.

◆ At()

const void * TTable::At ( Int_t  i) const

Returns a pointer to the i-th row of the table.

Definition at line 302 of file TTable.cxx.

◆ BoundsOk()

Bool_t TTable::BoundsOk ( const char *  where,
Int_t  at 
) const
inlineprotected

Definition at line 272 of file TTable.h.

◆ Browse()

void TTable::Browse ( TBrowser b)
virtual

Wrap each table coulumn with TColumnView object to browse.

Reimplemented from TDataSet.

Definition at line 1293 of file TTable.cxx.

◆ Clear()

void TTable::Clear ( Option_t opt = "")
protectedvirtual

Deletes the internal array of this class if this object does own its internal table.

Reimplemented from TNamed.

Definition at line 1341 of file TTable.cxx.

◆ CopyRows()

Int_t TTable::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 nRows or by the end of this table.

This table if automaticaly increased if expand = kTRUE. The old values of this table rows are to be destroyed and replaced with the new ones.

PARAMETERS: srcTable - a pointer to the table "donor" srcRow - the index of the first row of the table donor to copy from dstRow - the index of the first row of this table to copy to nRows - the total number of rows to be copied. This table will be expanded as needed if expand = kTRUE (it is kFALSE "by default") = 0 to copy ALL remain rows from the srcTable. expand - flag whether this table should reallocated if needed.

RETURN: the number of the rows been copied

Definition at line 331 of file TTable.cxx.

◆ CopySet()

void TTable::CopySet ( TTable array)
virtual

to be documented

Definition at line 1157 of file TTable.cxx.

◆ CopyStruct()

void TTable::CopyStruct ( Char_t dest,
const Char_t src 
)
protected

Copy the C-structure src into the new location the length of the strucutre is defined by this class descriptor.

Definition at line 1150 of file TTable.cxx.

◆ Create()

Char_t * TTable::Create ( )
protected

Allocate a space for the new table, if any Sleep for a while if space is not available and try again.

Definition at line 1267 of file TTable.cxx.

◆ Delete()

void TTable::Delete ( Option_t opt = "")
protectedvirtual

Delete the internal array and free the memory it occupied if this object did own this array.

Then perform TDataSet::Delete(opt)

Reimplemented from TDataSet.

Definition at line 1365 of file TTable.cxx.

◆ DeleteRows()

void TTable::DeleteRows ( Long_t  indx,
UInt_t  nRows = 1 
)
virtual

Delete one or several rows from the table.

Int_t indx - index of the first row to be deleted Int_t nRows - the total number of rows to be deleted = 1 "by default

Definition at line 363 of file TTable.cxx.

◆ Draw() [1/3]

void TTable::Draw ( Option_t option)
inlinevirtual

Default Draw method for all objects.

Reimplemented from TObject.

Definition at line 308 of file TTable.h.

◆ Draw() [2/3]

TH1 * TTable::Draw ( TCut  varexp,
TCut  selection,
Option_t option = "",
Int_t  nentries = 1000000000,
Int_t  firstentry = 0 
)
virtual

Draw expression varexp for specified entries.

This function accepts TCut objects as arguments. Useful to use the string operator + example: table.Draw("x",cut1+cut2+cut3);

TCutG object with "CUTG" name can be created via the graphics editor.

Definition at line 379 of file TTable.cxx.

◆ Draw() [3/3]

TH1 * TTable::Draw ( const char *  varexp00,
const char *  selection,
Option_t option = "",
Int_t  nentries = 1000000000,
Int_t  firstentry = 0 
)
virtual

Draw expression varexp for specified entries.

varexp is an expression of the general form e1:e2:e3 where e1,etc is a C++ expression referencing a combination of the TTable columns One can use two extra meta variable "i$" and "n$" along with the table column names. i$ is to involve the current row number n$ refers the total num,ber of rows of this table provided by TTable::GetNRows()

Example: varexp = x simplest case: draw a 1-Dim distribution of column named x = sqrt(x) : draw distribution of sqrt(x) = x*y/z = y:sqrt(x) 2-Dim dsitribution of y versus sqrt(x) = i$:sqrt(x) 2-Dim dsitribution of i versus sqrt(x[i]) = phep[0]:sqrt(phep[3]) 2-Dim dsitribution of phep[0] versus sqrt(phep[3])

Note that the variables e1, e2 or e3 may contain a boolean expression as well. example, if e1= x*(y<0), the value histogrammed will be x if y<0 and will be 0 otherwise.

selection is a C++ expression with a combination of the columns. The value corresponding to the selection expression is used as a weight to fill the histogram. If the expression includes only boolean operations, the result is 0 or 1. If the result is 0, the histogram is not filled. In general, the expression may be of the form:

value*(boolean expression)

if boolean expression is true, the histogram is filled with a weight = value. Examples: selection1 = "x<y && sqrt(z)>3.2 && 6 < i$ && i$ < n$" selection2 = "(x+y)*(sqrt(z)>3.2" selection3 = "signal*(log(signal)>1.2)" selection1 returns a weigth = 0 or 1 selection2 returns a weight = x+y if sqrt(z)>3.2 returns a weight = 0 otherwise. selection3 returns a weight = signal if log(signal)>1.2

option is the drawing option see TH1::Draw for the list of all drawing options. If option contains the string "goff", no graphics is generated.

nentries is the number of entries to process (default is all) first is the first entry to process (default is 0)

Saving the result of Draw to an histogram

By default the temporary histogram created is called htemp. If varexp0 contains >>hnew (following the variable(s) name(s), the new histogram created is called hnew and it is kept in the current directory. Example: tree.Draw("sqrt(x)>>hsqrt","y>0") will draw sqrt(x) and save the histogram as "hsqrt" in the current directory.

By default, the specified histogram is reset. To continue to append data to an existing histogram, use "+" in front of the histogram name; table.Draw("sqrt(x)>>+hsqrt","y>0") will not reset hsqrt, but will continue filling.

Making a Profile histogram

In case of a 2-Dim expression, one can generate a TProfile histogram instead of a TH2F histogram by specyfying option=prof or option=profs. The option=prof is automatically selected in case of y:x>>pf where pf is an existing TProfile histogram.

Saving the result of Draw to a TEventList

TTable::Draw can be used to fill a TEventList object (list of entry numbers) instead of histogramming one variable. If varexp0 has the form >>elist , a TEventList object named "elist" is created in the current directory. elist will contain the list of entry numbers satisfying the current selection. Example: tree.Draw(">>yplus","y>0") will create a TEventList object named "yplus" in the current directory. In an interactive session, one can type (after TTable::Draw) yplus.Print("all") to print the list of entry numbers in the list.

By default, the specified entry list is reset. To continue to append data to an existing list, use "+" in front of the list name; table.Draw(">>+yplus","y>0") will not reset yplus, but will enter the selected entries at the end of the existing list.

Definition at line 479 of file TTable.cxx.

◆ EntryLoop()

Bool_t TTable::EntryLoop ( const Char_t exprFileName,
Int_t action,
TObject obj,
Int_t  nentries = 1000000000,
Int_t  firstentry = 0,
Option_t option = "" 
)
protectedvirtual

EntryLoop creates a CINT bytecode to evaluate the given expressions for all table rows in loop and fill the appropriated histograms.

Solution for Byte code From: Masaharu Goto MXJ02.nosp@m.154@.nosp@m.nifty.nosp@m..ne..nosp@m.jp To: fine@.nosp@m.bnl..nosp@m.gov Cc: rootd.nosp@m.ev@h.nosp@m.psalo.nosp@m..cer.nosp@m.n.ch Sent: 13-th august 1999 year 23:01

action = 1 Fill 1-D histogram obj = 2 Fill 2-D histogram obj = 3 Fill 3-D histogram obj = 4 Fill Profile histogram obj = 5 Fill a TEventlist = 11 Estimate Limits = 12 Fill 2-D PolyMarker obj = 13 Fill 3-D PolyMarker obj action < 0 Evaluate Limits for case abs(action)

Load file

Definition at line 784 of file TTable.cxx.

◆ Fit()

void TTable::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

Fit a projected item(s) from a TTable.

formula is a TF1 expression.

See TTable::Draw for explanations of the other parameters.

By default the temporary histogram created is called htemp. If varexp contains >>hnew , the new histogram created is called hnew and it is kept in the current directory. Example: table.Fit(pol4,"sqrt(x)>>hsqrt","y>0") will fit sqrt(x) and save the histogram as "hsqrt" in the current directory.

Definition at line 1421 of file TTable.cxx.

◆ GetArray()

void * TTable::GetArray ( ) const
inline

Definition at line 280 of file TTable.h.

◆ GetColumnComment()

const Char_t * TTable::GetColumnComment ( Int_t  columnIndex) const
virtual

Get a comment from the table descriptor.

Definition at line 1165 of file TTable.cxx.

◆ GetColumnIndex()

Int_t TTable::GetColumnIndex ( const Char_t columnName) const
virtual

Definition at line 2419 of file TTable.cxx.

◆ GetColumnName()

const Char_t * TTable::GetColumnName ( Int_t  columnIndex) const
virtual

Definition at line 2420 of file TTable.cxx.

◆ GetColumnSize() [1/2]

UInt_t TTable::GetColumnSize ( Int_t  columnIndex) const
virtual

Definition at line 2427 of file TTable.cxx.

◆ GetColumnSize() [2/2]

Int_t TTable::GetColumnSize ( const Char_t columnName = 0) const
virtual

Definition at line 2428 of file TTable.cxx.

◆ GetColumnType() [1/2]

TTable::EColumnType TTable::GetColumnType ( Int_t  columnIndex) const
virtual

Definition at line 2436 of file TTable.cxx.

◆ GetColumnType() [2/2]

TTable::EColumnType TTable::GetColumnType ( const Char_t columnName = 0) const
virtual

Definition at line 2437 of file TTable.cxx.

◆ GetDescriptorPointer()

TTableDescriptor * TTable::GetDescriptorPointer ( ) const
protectedvirtual

to be documented

Reimplemented in TTableDescriptor, TIndexTable, and TGenericTable.

Definition at line 2235 of file TTable.cxx.

◆ GetDimensions() [1/2]

UInt_t TTable::GetDimensions ( Int_t  columnIndex) const
virtual

Definition at line 2433 of file TTable.cxx.

◆ GetDimensions() [2/2]

Int_t TTable::GetDimensions ( const Char_t columnName = 0) const
virtual

Definition at line 2434 of file TTable.cxx.

◆ GetIndexArray()

const UInt_t * TTable::GetIndexArray ( Int_t  columnIndex) const
virtual

Definition at line 2421 of file TTable.cxx.

◆ GetNRows()

Long_t TTable::GetNRows ( ) const
virtual

Returns the number of the used rows for the wrapped table.

Definition at line 1387 of file TTable.cxx.

◆ GetNumberOfColumns()

UInt_t TTable::GetNumberOfColumns ( ) const
virtual

Definition at line 2422 of file TTable.cxx.

◆ GetOffset() [1/2]

UInt_t TTable::GetOffset ( Int_t  columnIndex) const
virtual

Definition at line 2424 of file TTable.cxx.

◆ GetOffset() [2/2]

Int_t TTable::GetOffset ( const Char_t columnName = 0) const
virtual

Definition at line 2425 of file TTable.cxx.

◆ GetRowClass()

TClass * TTable::GetRowClass ( ) const
virtual

to be documented

Definition at line 1374 of file TTable.cxx.

◆ GetRowDescriptors()

TTableDescriptor * TTable::GetRowDescriptors ( ) const
virtual

to be documented

Reimplemented in TGenericTable.

Definition at line 2221 of file TTable.cxx.

◆ GetRowSize()

Long_t TTable::GetRowSize ( ) const
virtual

Returns the size (in bytes) of one table row.

Definition at line 1394 of file TTable.cxx.

◆ GetSize()

Int_t TTable::GetSize ( ) const
inline

Definition at line 116 of file TTable.h.

◆ GetTableDescriptors()

TTableDescriptor * TTable::GetTableDescriptors ( ) const
virtual

protected: create a new TTableDescriptor descriptor for this table

Reimplemented in TGenericTable.

Definition at line 213 of file TTable.cxx.

◆ GetTableSize()

Long_t TTable::GetTableSize ( ) const
virtual

Returns the number of the allocated rows.

Definition at line 1401 of file TTable.cxx.

◆ GetType()

const Char_t * TTable::GetType ( ) const
virtual

Returns the type of the wrapped C-structure kept as the TNamed title.

Definition at line 1443 of file TTable.cxx.

◆ GetTypeId()

TTable::EColumnType TTable::GetTypeId ( const char *  typeName)
static

return the Id of the C basic type by given name return kNAN if the name provided fits no knwn basic name.

Definition at line 291 of file TTable.cxx.

◆ GetTypeName()

const char * TTable::GetTypeName ( TTable::EColumnType  type)
static

return table type name

Definition at line 281 of file TTable.cxx.

◆ GetTypeSize() [1/2]

UInt_t TTable::GetTypeSize ( Int_t  columnIndex) const
virtual

Definition at line 2430 of file TTable.cxx.

◆ GetTypeSize() [2/2]

Int_t TTable::GetTypeSize ( const Char_t columnName = 0) const
virtual

Definition at line 2431 of file TTable.cxx.

◆ HasData()

virtual Long_t TTable::HasData ( ) const
inlinevirtual

Reimplemented from TDataSet.

Definition at line 126 of file TTable.h.

◆ InsertRows()

Long_t TTable::InsertRows ( const void row,
Long_t  indx,
UInt_t  nRows = 1 
)
virtual

void InsertRows(cons void *row, Long_t indx, UInt_t nRows)

Insert one or several rows into the table at "indx" position The rest table stuff is shifted down

cons void - a pointer to the array of rows to be inserted Long_t indx = The position these rows will be inserted to Int_t nRows - the total number of rows to be inserted = 1 "by default return: The number of the rows has been shifted to accomodate the new rows.

Definition at line 1202 of file TTable.cxx.

◆ IsFolder()

Bool_t TTable::IsFolder ( ) const
virtual

return Folder flag to be used by TBrowse object The table is a folder if

  • it has sub-dataset or
  • GetNRows > 0

Reimplemented from TDataSet.

Definition at line 1455 of file TTable.cxx.

◆ MakeExpression()

Char_t * TTable::MakeExpression ( const Char_t expressions[],
Int_t  nExpressions 
)
virtual

Create CINT macro to evaluate the user-provided expresssion Expression may contains:

  • the table columen names
  • 2 meta names: i$ - the current column index, n$ - the total table size provided by TTable::GetNRows() method

return the name of temporary file with the current expressions

Definition at line 2002 of file TTable.cxx.

◆ NaN()

Int_t TTable::NaN ( )

return the total number of the NaN for float/double cells of this table Thanks Victor Perevoztchikov

Definition at line 1473 of file TTable.cxx.

◆ New()

TTable * TTable::New ( const Char_t name,
const Char_t type,
void array,
UInt_t  size 
)
static

This static method creates a new TTable object if provided.

Definition at line 1514 of file TTable.cxx.

◆ operator=()

TTable & TTable::operator= ( const TTable rhs)

TTable assignment operator.

This operator REALLOCATEs this table to fit the number of the USED rows of the source table if any

Definition at line 1082 of file TTable.cxx.

◆ operator[]() [1/2]

void * TTable::operator[] ( Int_t  i)
inline

Definition at line 292 of file TTable.h.

◆ operator[]() [2/2]

const void * TTable::operator[] ( Int_t  i) const
inline

Definition at line 300 of file TTable.h.

◆ OutOfBoundsError()

Bool_t TTable::OutOfBoundsError ( const char *  where,
Int_t  i 
) const
protected

Generate an out-of-bounds error. Always returns false.

Definition at line 1539 of file TTable.cxx.

◆ pbegin()

piterator TTable::pbegin ( )
inline

Definition at line 260 of file TTable.h.

◆ pend()

piterator TTable::pend ( )
inline

Definition at line 261 of file TTable.h.

◆ Print() [1/3]

Char_t * TTable::Print ( Char_t buf,
Int_t  n 
) const
virtual

Create IDL table defintion (to be used for XDF I/O)

Definition at line 1547 of file TTable.cxx.

◆ Print() [2/3]

void TTable::Print ( Option_t option = "") const
inlinevirtual

Print TNamed name and title.

Reimplemented from TNamed.

Definition at line 283 of file TTable.h.

◆ Print() [3/3]

const Char_t * TTable::Print ( Int_t  row,
Int_t  rownumber = 10,
const Char_t colfirst = "",
const Char_t collast = "" 
) const
virtual

Print the contents of internal table per COLUMN.

row - the index of the first row to print (counting from ZERO) rownumber - the total number of rows to print out (=10 by default)

(No use !) Char_t *colfirst, *collast - the names of the first/last to print out (not implemented yet)

Definition at line 1639 of file TTable.cxx.

◆ PrintContents()

void TTable::PrintContents ( Option_t opt = "") const
virtual

to be documented

Reimplemented from TDataSet.

Definition at line 1769 of file TTable.cxx.

◆ PrintHeader()

const Char_t * TTable::PrintHeader ( ) const
virtual

Print general table inforamtion.

Definition at line 1619 of file TTable.cxx.

◆ Project()

void TTable::Project ( const char *  hname,
const char *  varexp,
const char *  selection = "",
Option_t option = "",
Int_t  nentries = 1000000000,
Int_t  firstentry = 0 
)
virtual

Make a projection of a TTable using selections.

Depending on the value of varexp (described in Draw) a 1-D,2-D,etc projection of the TTable will be filled in histogram hname. Note that the dimension of hname must match with the dimension of varexp.

Definition at line 1786 of file TTable.cxx.

◆ Purge()

Int_t TTable::Purge ( Option_t opt = "")
virtual

Shrink the table to free the unused but still allocated rows.

Reimplemented from TDataSet.

Definition at line 1800 of file TTable.cxx.

◆ ReAlloc()

void TTable::ReAlloc ( Int_t  newsize)
protected

The table is reallocated if it is an owner of the internal array.

Definition at line 1242 of file TTable.cxx.

◆ ReAllocate() [1/2]

void * TTable::ReAllocate ( Int_t  newsize)

Reallocate this table leaving only <newsize> allocated GetTableSize() = newsize; returns a pointer to the first row of the reallocated table Note: The table is reallocated if it is an owner of the internal array.

Definition at line 1233 of file TTable.cxx.

◆ ReAllocate() [2/2]

void * TTable::ReAllocate ( )

Reallocate this table leaving only (used rows)+1 allocated GetTableSize() = GetNRows() + 1 returns a pointer to the first row of the reallocated table Note: The table is reallocated if it is an owner of the internal array.

Definition at line 1221 of file TTable.cxx.

◆ Reset()

void TTable::Reset ( Int_t  c = 0)
virtual

Fill the entire table with byte "c" ; / c=0 "be default".

Definition at line 2071 of file TTable.cxx.

◆ ResetMap()

void TTable::ResetMap ( Bool_t  wipe = kTRUE)
virtual

Clean all filled columns with the pointers to TTableMap if any wipe = kTRUE - delete all object the Map's point to kFALSE - zero pointer, do not call "delete" though.

Definition at line 2086 of file TTable.cxx.

◆ SavePrimitive()

void TTable::SavePrimitive ( std::ostream &  out,
Option_t option = "" 
)
virtual

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented from TObject.

Definition at line 1809 of file TTable.cxx.

◆ Set() [1/2]

void TTable::Set ( Int_t  n)
virtual

Set array size of TTable object to n longs. If n<0 leave array unchanged.

Definition at line 1951 of file TTable.cxx.

◆ Set() [2/2]

void TTable::Set ( Int_t  n,
Char_t array 
)
virtual

Set array size of TTable object to n longs and copy array.

If n<0 leave array unchanged.

Definition at line 2100 of file TTable.cxx.

◆ SetDescriptorPointer()

void TTable::SetDescriptorPointer ( TTableDescriptor list)
protectedvirtual

to be documented

Reimplemented in TTableDescriptor, TIndexTable, and TGenericTable.

Definition at line 2244 of file TTable.cxx.

◆ SetfN()

Int_t TTable::SetfN ( Long_t  len)
protected

to be documented

Definition at line 2173 of file TTable.cxx.

◆ SetNRows()

void TTable::SetNRows ( Int_t  n)
inlinevirtual

Definition at line 288 of file TTable.h.

◆ SetTablePointer()

void TTable::SetTablePointer ( void table)
protected

to be documented

Definition at line 1963 of file TTable.cxx.

◆ SetType()

void TTable::SetType ( const char *const  type)
protectedvirtual

to be documented

Definition at line 1972 of file TTable.cxx.

◆ SetUsedRows()

void TTable::SetUsedRows ( Int_t  n)
inlineprotected

Definition at line 286 of file TTable.h.

◆ StreamerHeader()

void TTable::StreamerHeader ( TBuffer b,
Version_t  version = 3 
)
protected

Read "table parameters first".

Definition at line 2134 of file TTable.cxx.

◆ StreamerTable()

void TTable::StreamerTable ( TBuffer b,
Version_t  version = 3 
)
protected

Stream an object of class TTable.

Definition at line 2116 of file TTable.cxx.

◆ TableDictionary() [1/2]

const char * TTable::TableDictionary ( const char *  className,
const char *  structName,
TTableDescriptor *&  ColDescriptors 
)
staticprotected

Query the TClass instance for the C-stucture dicitonary This method is to be used with TableImp CPP macro (see $ROOTSYS/table/inc/Ttypes.h.

Definition at line 2409 of file TTable.cxx.

◆ TableDictionary() [2/2]

static const char* TTable::TableDictionary ( )
inlinestatic

Definition at line 263 of file TTable.h.

◆ Update() [1/2]

void TTable::Update ( )
virtual

to be documented

Reimplemented from TDataSet.

Definition at line 2376 of file TTable.cxx.

◆ Update() [2/2]

void TTable::Update ( TDataSet set,
UInt_t  opt = 0 
)
virtual

Kill the table current data and adopt those from set.

Reimplemented from TDataSet.

Definition at line 2384 of file TTable.cxx.

Friends And Related Function Documentation

◆ St_XDFFile

friend class St_XDFFile
friend

Definition at line 50 of file TTable.h.

◆ TDataSet

friend class TDataSet
friend

Definition at line 49 of file TTable.h.

Member Data Documentation

◆ fgTypeName

const char * TTable::fgTypeName
static
Initial value:
= {
"NAN", "float", "int", "long", "short", "double",
"unsigned int", "unsigned long","unsigned short",
"unsigned char", "char", "Ptr_t"
}

Definition at line 89 of file TTable.h.

◆ fMaxIndex

Long_t TTable::fMaxIndex
protected

Definition at line 58 of file TTable.h.

◆ fN

Int_t TTable::fN
protected

Definition at line 56 of file TTable.h.

◆ fSize

Long_t TTable::fSize
protected

Definition at line 52 of file TTable.h.

◆ fTable

Char_t* TTable::fTable
protected

Definition at line 57 of file TTable.h.

Libraries for TTable:
[legend]

The documentation for this class was generated from the following files: