ROOT » GUI » GUI » TGSimpleTableInterface

class TGSimpleTableInterface: public TVirtualTableInterface


TGSimpleTableInterface

TGSimpleTableInterface is a very simple implementation of a
TVirtualTableInterface. This interface provides a TGTable with data
from a two dimensional array of doubles in memory. It is mostly
meant as an example implementation for a TVirtualTableInterface.


Function Members (Methods)

public:
virtual~TGSimpleTableInterface()
static TClass*Class()
virtual const char*GetColumnHeader(UInt_t column)
virtual UInt_tGetNColumns()
virtual UInt_tGetNRows()
virtual const char*GetRowHeader(UInt_t row)
virtual Double_tGetValue(UInt_t row, UInt_t column)
virtual const char*GetValueAsString(UInt_t row, UInt_t column)
virtual TClass*IsA() const
TGSimpleTableInterface&operator=(const TGSimpleTableInterface&)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGSimpleTableInterface(const TGSimpleTableInterface&)
TGSimpleTableInterface(Double_t** data, UInt_t nrows = 2, UInt_t ncolumns = 2)

Data Members

private:
Double_t**fDataPointer to 2 dimensional array of Double_t
UInt_tfNColumns
UInt_tfNRows

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGSimpleTableInterface(Double_t** data, UInt_t nrows = 2, UInt_t ncolumns = 2)
 TGSimpleTableInterfac constructor.
~TGSimpleTableInterface()
Double_t GetValue(UInt_t row, UInt_t column)
 Return the value of the double in row,column of the data.
const char * GetValueAsString(UInt_t row, UInt_t column)
 Return the value of the double in row,column of the data as a string.
const char * GetRowHeader(UInt_t row)
 Return a name for the header at row.
const char * GetColumnHeader(UInt_t column)
 Return a name for the header at column.
TGSimpleTableInterface(Double_t** data, UInt_t nrows = 2, UInt_t ncolumns = 2)
UInt_t GetNRows()
{ return fNRows; }
UInt_t GetNColumns()
{ return fNColumns; }