ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends | List of all members
TTableDescriptor Class Reference

Definition at line 25 of file TTableDescriptor.h.

Public Types

typedef tableDescriptor_stiterator
 
- Public Types inherited from TTable
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  EDataSetPass {
  kContinue, kPrune, kStop, kUp,
  kStruct, kAll, kRefs, kMarked
}
 
enum  ESetBits { kMark = BIT(22), kArray = BIT(20) }
 
enum  EBitOpt { kSet = kTRUE, kReset = kFALSE }
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 

Public Member Functions

 TTableDescriptor (const TTable *parentTable)
 to be documented More...
 
 TTableDescriptor (TClass *classPtr)
 Create a descriptor of the C-structure defined by TClass TClass *classPtr must be a valid pointer to TClass object for "plain" C_struture only !!! More...
 
 TTableDescriptor (const TTableDescriptor &dsc)
 
virtual ~TTableDescriptor ()
 class destructor More...
 
virtual Int_t AddAt (const void *c)
 Append one row pointed by "c" to the descriptor. More...
 
virtual void AddAt (const void *c, Int_t i)
 Add one row pointed by "c" to the "i"-th row of the descriptor. More...
 
virtual void AddAt (const tableDescriptor_st &element, const char *comment, Int_t indx)
 Add the descriptor element followed by its commentText at the indx-th position of the descriptor (counted from zero) More...
 
virtual void AddAt (TDataSet *dataset, Int_t idx=0)
 Add one dataset to the descriptor. More...
 
TString CreateLeafList () const
 Create a list of leaf to be useful for TBranch::TBranch ctor. More...
 
void LearnTable (const TTable *parentTable)
 to be documented More...
 
void LearnTable (TClass *classPtr)
 LearnTable() creates an array of the descriptors for elements of the row. More...
 
const Char_tColumnName (Int_t columnIndex) const
 
Int_t ColumnByName (const Char_t *columnName=0) const
 Find the column index but the column name. More...
 
UInt_t NumberOfColumns () const
 
const UInt_tIndexArray (Int_t columnIndex) const
 
UInt_t Offset (Int_t columnIndex) const
 
Int_t Offset (const Char_t *columnName=0) const
 Return offset of the column defined by "columnName" Take in account index if provided Can not handle multidimensional indeces yet. More...
 
UInt_t ColumnSize (Int_t columnIndex) const
 
Int_t ColumnSize (const Char_t *columnName=0) const
 to be documented More...
 
UInt_t TypeSize (Int_t columnIndex) const
 
Int_t TypeSize (const Char_t *columnName=0) const
 to be documented More...
 
UInt_t Dimensions (Int_t columnIndex) const
 
Int_t Dimensions (const Char_t *columnName=0) const
 to be documented More...
 
TTable::EColumnType ColumnType (Int_t columnIndex) const
 
TTable::EColumnType ColumnType (const Char_t *columnName=0) const
 to be documented More...
 
TClassRowClass () const
 
void SetOffset (UInt_t offset, Int_t column)
 
void SetSize (UInt_t size, Int_t column)
 
void SetTypeSize (UInt_t size, Int_t column)
 
void SetDimensions (UInt_t dim, Int_t column)
 
Int_t Sizeof () const
 to be documented More...
 
void SetColumnType (TTable::EColumnType type, Int_t column)
 
virtual Int_t UpdateOffsets (const TTableDescriptor *newDesciptor)
 
             "Schema evolution"

Method updates the offsets with a new ones from another descriptor More...

 
TDataSetMakeCommentField (Bool_t createFlag=kTRUE)
 Instantiate a comment dataset if any. More...
 
 TTableDescriptor ()
 
 TTableDescriptor (const char *name)
 
 TTableDescriptor (Int_t n)
 
 TTableDescriptor (const char *name, Int_t n)
 
tableDescriptor_stGetTable (Int_t i=0) const
 
tableDescriptor_stoperator[] (Int_t i)
 
const tableDescriptor_stoperator[] (Int_t i) const
 
tableDescriptor_stbegin () const
 
tableDescriptor_stend () const
 
- Public Member Functions inherited from TTable
 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...
 
TTableoperator= (const TTable &rhs)
 TTable assignment operator. More...
 
virtual ~TTable ()
 Delete TTable object. 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...
 
virtual void CopySet (TTable &array)
 to be documented 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 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...
 
voidGetArray () const
 
virtual TClassGetRowClass () const
 to be documented More...
 
Int_t GetSize () const
 
virtual Long_t GetNRows () const
 Returns the number of the used rows for the wrapped table. More...
 
virtual Long_t GetRowSize () const
 Returns the size (in bytes) of one table row. More...
 
virtual Long_t GetTableSize () const
 Returns the number of the allocated rows. More...
 
virtual TTableDescriptorGetTableDescriptors () const
 
virtual TTableDescriptorGetRowDescriptors () const
 to be documented More...
 
virtual const Char_tGetType () const
 Returns the type of the wrapped C-structure kept as the TNamed title. 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...
 
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...
 
Int_t NaN ()
 return the total number of the NaN for float/double cells of this table Thanks Victor Perevoztchikov More...
 
virtual Char_tMakeExpression (const Char_t *expressions[], Int_t nExpressions)
 Create CINT macro to evaluate the user-provided expresssion Expression may contains: More...
 
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
 const Char_t *TTable::Print(Int_t row, Int_t rownumber, const Char_t *colfirst, const Char_t *collast) const 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 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 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 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...
 
voidoperator[] (Int_t i)
 
const voidoperator[] (Int_t i) const
 
virtual Int_t GetColumnIndex (const Char_t *columnName) const
 
virtual const Char_tGetColumnName (Int_t columnIndex) const
 
virtual const UInt_tGetIndexArray (Int_t columnIndex) const
 
virtual UInt_t GetNumberOfColumns () const
 
virtual UInt_t GetOffset (Int_t columnIndex) const
 
virtual Int_t GetOffset (const Char_t *columnName=0) const
 
virtual UInt_t GetColumnSize (Int_t columnIndex) const
 
virtual Int_t GetColumnSize (const Char_t *columnName=0) const
 
virtual UInt_t GetTypeSize (Int_t columnIndex) const
 
virtual Int_t GetTypeSize (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 EColumnType GetColumnType (Int_t columnIndex) const
 
virtual EColumnType GetColumnType (const Char_t *columnName=0) const
 
virtual const Char_tGetColumnComment (Int_t columnIndex) const
 Get a comment from the table descriptor. More...
 
piterator pbegin ()
 
piterator pend ()
 
- Public Member Functions inherited from TDataSet
 TDataSet (const char *name="", TDataSet *parent=0, Bool_t arrayFlag=kFALSE)
 
 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...
 
TObjArrayGetObjArray () const
 
virtual TSeqCollectionGetCollection () const
 
TListGetList () const
 
virtual Int_t GetListSize () const
 
TObjectGetMother () 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...
 
virtual TString Path () const
 return the full path of this data set 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 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...
 
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 UnMark ()
 
void MarkAll ()
 Mark all members of this dataset. More...
 
void UnMarkAll ()
 UnMark all members of this dataset. More...
 
void InvertAllMarks ()
 Invert mark bit for all members of this dataset. More...
 
void Mark (UInt_t flag, EBitOpt reset=kSet)
 
virtual TDataSetNext () const
 Return the object next to this one in the parent structure This convinient but time-consuming. More...
 
virtual TDataSetPrev () const
 Return the object that is previous to this one in the parent structure This convinient but time-consuming. 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)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
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
 
virtual void SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. 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 pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. 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 Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. 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...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. 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...
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
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 UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. 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)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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...
 
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...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 

Static Public Member Functions

static TTableDescriptorMakeDescriptor (const char *structName)
 MakeDescriptor(const char *structName) - static method structName - the name of the C structure to create descriptor of return a new instance of the TTableDescriptor or 0 if the "structName is not present with the dictionary. More...
 
static const char * TableDictionary ()
 
- Static Public Member Functions inherited from TTable
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 * GetTypeName (EColumnType type)
 return table type name More...
 
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 * 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 void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Member Functions

virtual void Init (TClass *classPtr)
 Create a descriptor of the C-structure defined by TClass TClass *classPtr must be a valid pointer to TClass object for "plain" C_structure only !!! More...
 
virtual TTableDescriptorGetDescriptorPointer () const
 to be documented More...
 
virtual void SetDescriptorPointer (TTableDescriptor *list)
 to be documented More...
 
- Protected Member Functions inherited from TTable
Bool_t BoundsOk (const char *where, Int_t at) const
 
Bool_t OutOfBoundsError (const char *where, Int_t i) const
 Generate an out-of-bounds error. Always returns false. 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 Clear (Option_t *opt="")
 Deletes the internal array of this class if this object does own its internal table. 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...
 
Int_t SetfN (Long_t len)
 to be documented More...
 
void SetTablePointer (void *table)
 to be documented More...
 
void SetUsedRows (Int_t n)
 
virtual void SetType (const char *const type)
 to be documented More...
 
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...
 
void ReAlloc (Int_t newsize)
 The table is reallocated if it is an owner of the internal array. More...
 
- Protected Member Functions inherited from TDataSet
virtual void SetMother (TObject *mother)
 
 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...
 
- Protected Member Functions inherited from TObject
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

Static Protected Member Functions

static void SetCommentsSetName (const char *name=".comments")
 set comments name More...
 
- Static Protected Member Functions inherited from TTable
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

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

Static Protected Attributes

static TString fgCommentsName = ".comments"
 
static TTableDescriptorfgColDescriptors = 0
 
- Static Protected Attributes inherited from TDataSet
static TDataSetfgMainSet = &mainSet
 

Private Member Functions

TTableDescriptoroperator= (const TTableDescriptor &dsc)
 

Friends

class TTable
 

Additional Inherited Members

- Static Public Attributes inherited from TTable
static const char * fgTypeName [kEndColumnType]
 

#include <TTableDescriptor.h>

+ Inheritance diagram for TTableDescriptor:
+ Collaboration diagram for TTableDescriptor:

Member Typedef Documentation

Definition at line 83 of file TTableDescriptor.h.

Constructor & Destructor Documentation

TTableDescriptor::TTableDescriptor ( const TTable parentTable)

to be documented

Definition at line 71 of file TTableDescriptor.cxx.

TTableDescriptor::TTableDescriptor ( TClass classPtr)

Create a descriptor of the C-structure defined by TClass TClass *classPtr must be a valid pointer to TClass object for "plain" C_struture only !!!

Definition at line 86 of file TTableDescriptor.cxx.

TTableDescriptor::TTableDescriptor ( const TTableDescriptor dsc)
inline

Definition at line 42 of file TTableDescriptor.h.

TTableDescriptor::~TTableDescriptor ( )
virtual

class destructor

Definition at line 94 of file TTableDescriptor.cxx.

TTableDescriptor::TTableDescriptor ( )
inline

Definition at line 84 of file TTableDescriptor.h.

Referenced by MakeDescriptor().

TTableDescriptor::TTableDescriptor ( const char *  name)
inline

Definition at line 85 of file TTableDescriptor.h.

TTableDescriptor::TTableDescriptor ( Int_t  n)
inline

Definition at line 86 of file TTableDescriptor.h.

TTableDescriptor::TTableDescriptor ( const char *  name,
Int_t  n 
)
inline

Definition at line 87 of file TTableDescriptor.h.

Member Function Documentation

Int_t TTableDescriptor::AddAt ( const void c)
virtual

Append one row pointed by "c" to the descriptor.

Reimplemented from TTable.

Definition at line 115 of file TTableDescriptor.cxx.

Referenced by AddAt(), TResponseTable::AddElement(), TIndexTable::CreateDescriptor(), and LearnTable().

void TTableDescriptor::AddAt ( const void c,
Int_t  i 
)
virtual

Add one row pointed by "c" to the "i"-th row of the descriptor.

Reimplemented from TTable.

Definition at line 126 of file TTableDescriptor.cxx.

void TTableDescriptor::AddAt ( const tableDescriptor_st element,
const char *  comment,
Int_t  indx 
)
virtual

Add the descriptor element followed by its commentText at the indx-th position of the descriptor (counted from zero)

Definition at line 153 of file TTableDescriptor.cxx.

void TTableDescriptor::AddAt ( TDataSet dataset,
Int_t  idx = 0 
)
virtual

Add one dataset to the descriptor.

There is no new implementation here. One needs it to avoid the "hidden method" compilation warning

Reimplemented from TTable.

Definition at line 144 of file TTableDescriptor.cxx.

tableDescriptor_st* TTableDescriptor::begin ( ) const
inline
Int_t TTableDescriptor::ColumnByName ( const Char_t columnName = 0) const

Find the column index but the column name.

Definition at line 406 of file TTableDescriptor.cxx.

Referenced by ColumnSize(), ColumnType(), Dimensions(), TTable::GetColumnIndex(), Offset(), TypeSize(), and UpdateOffsets().

const Char_t * TTableDescriptor::ColumnName ( Int_t  columnIndex) const
inline
UInt_t TTableDescriptor::ColumnSize ( Int_t  columnIndex) const
inline

Definition at line 103 of file TTableDescriptor.h.

Referenced by ColumnSize(), TTable::GetColumnSize(), and Sizeof().

Int_t TTableDescriptor::ColumnSize ( const Char_t columnName = 0) const

to be documented

Definition at line 452 of file TTableDescriptor.cxx.

TTable::EColumnType TTableDescriptor::ColumnType ( Int_t  columnIndex) const
inline
TTable::EColumnType TTableDescriptor::ColumnType ( const Char_t columnName = 0) const

to be documented

Definition at line 482 of file TTableDescriptor.cxx.

TString TTableDescriptor::CreateLeafList ( ) const

Create a list of leaf to be useful for TBranch::TBranch ctor.

Definition at line 166 of file TTableDescriptor.cxx.

UInt_t TTableDescriptor::Dimensions ( Int_t  columnIndex) const
inline
Int_t TTableDescriptor::Dimensions ( const Char_t columnName = 0) const

to be documented

Definition at line 472 of file TTableDescriptor.cxx.

tableDescriptor_st* TTableDescriptor::end ( ) const
inline
virtual TTableDescriptor* TTableDescriptor::GetDescriptorPointer ( ) const
protectedvirtual

to be documented

Reimplemented from TTable.

tableDescriptor_st* TTableDescriptor::GetTable ( Int_t  i = 0) const
inline
const UInt_t * TTableDescriptor::IndexArray ( Int_t  columnIndex) const
inline
void TTableDescriptor::Init ( TClass classPtr)
protectedvirtual

Create a descriptor of the C-structure defined by TClass TClass *classPtr must be a valid pointer to TClass object for "plain" C_structure only !!!

Definition at line 214 of file TTableDescriptor.cxx.

Referenced by TTableDescriptor().

void TTableDescriptor::LearnTable ( const TTable parentTable)

to be documented

Definition at line 229 of file TTableDescriptor.cxx.

Referenced by Init().

void TTableDescriptor::LearnTable ( TClass classPtr)

LearnTable() creates an array of the descriptors for elements of the row.

It creates a descriptor of the C-structure defined by TClass TClass *classPtr must be a valid pointer to TClass object for "plain" C-structure only !!!

This is to introduce an artificial restriction demanded by STAR database group

  1. the name may be 31 symbols at most
  2. the number the dimension is 3 at most

To lift this restriction one has to provide -DNORESTRICTIONS CPP symbol and recompile code (and debug code NOW!)

Definition at line 255 of file TTableDescriptor.cxx.

TDataSet * TTableDescriptor::MakeCommentField ( Bool_t  createFlag = kTRUE)

Instantiate a comment dataset if any.

Definition at line 340 of file TTableDescriptor.cxx.

Referenced by AddAt(), TTable::Print(), and TTable::SavePrimitive().

TTableDescriptor * TTableDescriptor::MakeDescriptor ( const char *  structName)
static

MakeDescriptor(const char *structName) - static method structName - the name of the C structure to create descriptor of return a new instance of the TTableDescriptor or 0 if the "structName is not present with the dictionary.

Definition at line 328 of file TTableDescriptor.cxx.

Referenced by TGenericTable::TGenericTable().

UInt_t TTableDescriptor::NumberOfColumns ( ) const
inline

Definition at line 102 of file TTableDescriptor.h.

Referenced by CreateLeafList(), TTable::GetNumberOfColumns(), and UpdateOffsets().

UInt_t TTableDescriptor::Offset ( Int_t  columnIndex) const
inline
Int_t TTableDescriptor::Offset ( const Char_t columnName = 0) const

Return offset of the column defined by "columnName" Take in account index if provided Can not handle multidimensional indeces yet.

Definition at line 434 of file TTableDescriptor.cxx.

TTableDescriptor& TTableDescriptor::operator= ( const TTableDescriptor dsc)
private
tableDescriptor_st& TTableDescriptor::operator[] ( Int_t  i)
inline

Definition at line 89 of file TTableDescriptor.h.

const tableDescriptor_st& TTableDescriptor::operator[] ( Int_t  i) const
inline

Definition at line 90 of file TTableDescriptor.h.

TClass * TTableDescriptor::RowClass ( ) const
inline

Definition at line 107 of file TTableDescriptor.h.

Referenced by TTable::GetRowClass(), and Sizeof().

void TTableDescriptor::SetColumnType ( TTable::EColumnType  type,
Int_t  column 
)
inline

Definition at line 112 of file TTableDescriptor.h.

void TTableDescriptor::SetCommentsSetName ( const char *  name = ".comments")
staticprotected

set comments name

Definition at line 53 of file TTableDescriptor.cxx.

virtual void TTableDescriptor::SetDescriptorPointer ( TTableDescriptor list)
protectedvirtual

to be documented

Reimplemented from TTable.

void TTableDescriptor::SetDimensions ( UInt_t  dim,
Int_t  column 
)
inline

Definition at line 111 of file TTableDescriptor.h.

void TTableDescriptor::SetOffset ( UInt_t  offset,
Int_t  column 
)
inline

Definition at line 108 of file TTableDescriptor.h.

Referenced by UpdateOffsets().

void TTableDescriptor::SetSize ( UInt_t  size,
Int_t  column 
)
inline

Definition at line 109 of file TTableDescriptor.h.

void TTableDescriptor::SetTypeSize ( UInt_t  size,
Int_t  column 
)
inline

Definition at line 110 of file TTableDescriptor.h.

Int_t TTableDescriptor::Sizeof ( ) const
virtual

to be documented

Reimplemented from TNamed.

Definition at line 491 of file TTableDescriptor.cxx.

Referenced by TGenericTable::TGenericTable(), and TResponseTable::TResponseTable().

static const char* TTableDescriptor::TableDictionary ( )
static
UInt_t TTableDescriptor::TypeSize ( Int_t  columnIndex) const
inline

Definition at line 104 of file TTableDescriptor.h.

Referenced by TTable::GetTypeSize(), Offset(), and TypeSize().

Int_t TTableDescriptor::TypeSize ( const Char_t columnName = 0) const

to be documented

Definition at line 462 of file TTableDescriptor.cxx.

Int_t TTableDescriptor::UpdateOffsets ( const TTableDescriptor newDesciptor)
virtual

             "Schema evolution"

Method updates the offsets with a new ones from another descriptor

Definition at line 351 of file TTableDescriptor.cxx.

Friends And Related Function Documentation

friend class TTable
friend

Definition at line 29 of file TTableDescriptor.h.

Member Data Documentation

TTableDescriptor * TTableDescriptor::fgColDescriptors = 0
staticprotected

Definition at line 79 of file TTableDescriptor.h.

TString TTableDescriptor::fgCommentsName = ".comments"
staticprotected

Definition at line 34 of file TTableDescriptor.h.

Referenced by MakeCommentField(), and SetCommentsSetName().

TClass* TTableDescriptor::fRowClass
protected

Definition at line 30 of file TTableDescriptor.h.

Referenced by Init(), and RowClass().

TTableDescriptor* TTableDescriptor::fSecondDescriptor
protected

Definition at line 32 of file TTableDescriptor.h.

Referenced by Init(), and ~TTableDescriptor().


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