class THaRTTI


 THaRTTI

 RTTI information for a member variable of a ROOT class.
 This is a utility class used internally by THaVarList.


Function Members (Methods)

public:
THaRTTI()
THaRTTI(const THaRTTI&)
virtual~THaRTTI()
static TClass*Class()
Int_tFind(TClass* cl, TString& var, const void *const p = 0)
THaRTTI::EArrayTypeGetArrayType() const
TClass*GetClass() const
Int_tGetCountOffset() const
TDataMember*GetDataMember() const
Int_tGetOffset() const
TRealData*GetRealData() const
const char*GetSubscript() const
VarTypeGetType() const
virtual TClass*IsA() const
Bool_tIsArray() const
Bool_tIsObject() const
Bool_tIsPointer() const
Bool_tIsValid() const
THaRTTI&operator=(const THaRTTI&)
virtual voidPrint(Option_t* opt = "") const
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
TObject*FindRealDataVar(TList* lrd, TString& var)

Data Members

public:
enum EArrayType { kScalar
kFixed
kVariable
};
protected:
THaRTTI::EArrayTypefArrayTypeArray type (0=scalar, 1=fixed, 2=variable)
Int_tfCountOffsetFor var array: Offset of length specifier
TDataMember*fDataMemberAssociated ROOT TDataMember
Int_tfOffsetOffset with respect to THIS pointer
TRealData*fRealDataAssociated ROOT TRealData
TStringfSubscriptFor fixed array: Description of dimension(s)
VarTypefTypeVariable type (kObject if object)

Class Charts

Inheritance Chart:
THaRTTI

Function documentation

Int_t Find(TClass* cl, TString& var, const void *const p = 0)
 Get RTTI info for member variable 'var' of ROOT class 'cl'
 'prototype' is a pointer to an object of class 'cl' and must
 be specified if the class does not have a default constructor.
TObject* FindRealDataVar(TList* lrd, TString& var)
 Search list of TRealData 'lrd' for a variable named 'var',
 stripping pointer prefixes "*" and array subscripts.
 Return corresponding TRealData entry if found, else NULL.
 Protected function used by Find().
TClass* GetClass()
 If this is an object, get its class
Bool_t IsPointer()
void Print(Option_t* opt = "") const
 Print RTTI information
THaRTTI(const THaRTTI& )
{}
virtual ~THaRTTI()
{}
EArrayType GetArrayType()
{ return fArrayType; }
Int_t GetCountOffset()
{ return fCountOffset; }
TDataMember* GetDataMember()
{ return fDataMember; }
Int_t GetOffset()
{ return fOffset; }
TRealData* GetRealData()
{ return fRealData; }
const char* GetSubscript()
{ return fSubscript.Data(); }
VarType GetType()
{ return fType; }
Bool_t IsArray()
{ return (fArrayType != kScalar); }
Bool_t IsObject()
Bool_t IsValid()
{ return (fOffset != -1); }

Last change: Sat Nov 7 21:26:49 2009
Last generated: 2009-11-07 21:26

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.