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:
TGSimpleTableInterface(const TGSimpleTableInterface&)
TGSimpleTableInterface(Double_t** data, UInt_t nrows = 2, UInt_t ncolumns = 2)
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, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)

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()
 TGSimpleTableInterface destructor.
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; }

Author: Roel Aaij 21/07/2007
Last change: Wed Jun 25 08:42:46 2008
Last generated: 2008-06-25 08:42
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.