library: libTable #include "TTableDescriptor.h"

# TTableDescriptor

class description - source file - inheritance tree (.pdf)

## class TTableDescriptor : public TTable

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TDataSet`

<-

`TTable`

<-

`TTableDescriptor`

        protected:

          virtual TTableDescriptor* GetDescriptorPointer() const
                       virtual void Init(TClass* classPtr)
                        static void SetCommentsSetName(const char* name = ".comments")
                       virtual void SetDescriptorPointer(TTableDescriptor* list)

        public:

                                    TTableDescriptor(const TTable* parentTable)
                                    TTableDescriptor(TClass* classPtr)
                                    TTableDescriptor(const TTableDescriptor& dsc)
                                    TTableDescriptor()
                                    TTableDescriptor(const Text_t* name)
                                    TTableDescriptor(Int_t n)
                                    TTableDescriptor(const Text_t* name, Int_t n)
                                    ~TTableDescriptor()
                      virtual Int_t AddAt(const void* c)
                       virtual void AddAt(const void* c, Int_t i)
                       virtual void AddAt(const tableDescriptor_st& element, const char* comment, Int_t indx)
                       virtual void AddAt(TDataSet* dataset, Int_t idx = 0)
                tableDescriptor_st* begin() const
                     static TClass* Class()
                              Int_t ColumnByName(const Char_t* columnName = "0") const
                      const Char_t* ColumnName(Int_t columnIndex) const
                             UInt_t ColumnSize(Int_t columnIndex) const
                              Int_t ColumnSize(const Char_t* columnName = "0") const
                TTable::EColumnType ColumnType(Int_t columnIndex) const
                TTable::EColumnType ColumnType(const Char_t* columnName = "0") const
                            TString CreateLeafList() const
                             UInt_t Dimensions(Int_t columnIndex) const
                              Int_t Dimensions(const Char_t* columnName = "0") const
                tableDescriptor_st* end() const
                tableDescriptor_st* GetTable(Int_t i = 0) const
                      const UInt_t* IndexArray(Int_t columnIndex) const
                    virtual TClass* IsA() const
                               void LearnTable(const TTable* parentTable)
                               void LearnTable(TClass* classPtr)
                          TDataSet* MakeCommentField(Bool_t createFlag = kTRUE)
           static TTableDescriptor* MakeDescriptor(const char* structName)
                             UInt_t NumberOfColumns() const
                             UInt_t Offset(Int_t columnIndex) const
                              Int_t Offset(const Char_t* columnName = "0") const
                tableDescriptor_st& operator[](Int_t i)
          const tableDescriptor_st& operator[](Int_t i) const
                            TClass* RowClass() const
                               void SetColumnType(TTable::EColumnType type, Int_t column)
                               void SetDimensions(UInt_t dim, Int_t column)
                               void SetOffset(UInt_t offset, Int_t column)
                               void SetSize(UInt_t size, Int_t column)
                               void SetTypeSize(UInt_t size, Int_t column)
                       virtual void ShowMembers(TMemberInspector& insp, char* parent)
                      virtual Int_t Sizeof() const
                       virtual void Streamer(TBuffer& b)
                               void StreamerNVirtual(TBuffer& b)
                 static const char* TableDictionary() const
                             UInt_t TypeSize(Int_t columnIndex) const
                              Int_t TypeSize(const Char_t* columnName = "0") const
                      virtual Int_t UpdateOffsets(const TTableDescriptor* newDesciptor)

### Data Members

        protected:

                           TClass* fRowClass          TClass defining
                 TTableDescriptor* fSecondDescriptor  shadow descriptor
                    static TString fCommentsName      The name of dataset to keep the comments fields
          static TTableDescriptor* fgColDescriptors

## Class Description

     inline  TTableDescriptor(const TTableDescriptor &dsc) : TTable(dsc), fRowClass(dsc.fRowClass),fSecondDescriptor(0){}

inline const Char_t* ColumnName(Int_t column)const

inline const UInt_t* IndexArray(Int_t column)const

### Inline Functions

                                 void ~TTableDescriptor()
                                 void Init(TClass* classPtr)
                                 void SetCommentsSetName(const char* name = ".comments")
                     TTableDescriptor TTableDescriptor(const TTable* parentTable)
                     TTableDescriptor TTableDescriptor(TClass* classPtr)
                     TTableDescriptor TTableDescriptor(const TTableDescriptor& dsc)
                                Int_t AddAt(const void* c)
                                 void AddAt(const void* c, Int_t i)
                                 void AddAt(const tableDescriptor_st& element, const char* comment, Int_t indx)
                                 void AddAt(TDataSet* dataset, Int_t idx = 0)
                              TString CreateLeafList() const
                                 void LearnTable(const TTable* parentTable)
                                 void LearnTable(TClass* classPtr)
                                Int_t ColumnByName(const Char_t* columnName = "0") const
                               UInt_t NumberOfColumns() const
                               UInt_t Offset(Int_t columnIndex) const
                                Int_t Offset(const Char_t* columnName = "0") const
                               UInt_t ColumnSize(Int_t columnIndex) const
                                Int_t ColumnSize(const Char_t* columnName = "0") const
                               UInt_t TypeSize(Int_t columnIndex) const
                                Int_t TypeSize(const Char_t* columnName = "0") const
                               UInt_t Dimensions(Int_t columnIndex) const
                                Int_t Dimensions(const Char_t* columnName = "0") const
                  TTable::EColumnType ColumnType(Int_t columnIndex) const
                  TTable::EColumnType ColumnType(const Char_t* columnName = "0") const
                              TClass* RowClass() 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
                                 void SetColumnType(TTable::EColumnType type, Int_t column)
                                Int_t UpdateOffsets(const TTableDescriptor* newDesciptor)
                    TTableDescriptor* MakeDescriptor(const char* structName)
                            TDataSet* MakeCommentField(Bool_t createFlag = kTRUE)
                    TTableDescriptor* GetDescriptorPointer() const
                                 void SetDescriptorPointer(TTableDescriptor* list)
                     TTableDescriptor TTableDescriptor()
                     TTableDescriptor TTableDescriptor(const Text_t* name)
                     TTableDescriptor TTableDescriptor(Int_t n)
                     TTableDescriptor TTableDescriptor(const Text_t* name, Int_t n)
                  tableDescriptor_st* GetTable(Int_t i = 0) const
                  tableDescriptor_st& operator[](Int_t i)
            const tableDescriptor_st& operator[](Int_t i) const
                  tableDescriptor_st* begin() const
                  tableDescriptor_st* end() const
                          const char* TableDictionary() const
                              TClass* Class()
                              TClass* IsA() const
                                 void ShowMembers(TMemberInspector& insp, char* parent)
                                 void Streamer(TBuffer& b)
                                 void StreamerNVirtual(TBuffer& b)

Author: Valery Fine 09/08/99 (E-mail: fine@bnl.gov)
Last update: root/star:$Name: $:$Id: TTableDescriptor.h,v 1.4 2003/02/05 23:35:34 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *