12 #ifndef ROOT_TDataMember 13 #define ROOT_TDataMember 24 #ifndef ROOT_TDictionary 60 void Init(
bool afterReading);
94 virtual bool Update(DataMemberInfo_t *info);
113 fDataMember(0), fValue(0), fValueMaskBit(0), fToggleMaskBit(0)
116 const char *
name,
const char *label);
void Init(bool afterReading)
Routines called by the constructor and Update to reset the member's information.
TMethodCall * SetterMethod(TClass *cl)
Return a TMethodCall method responsible for setting the value of data member.
TMethodCall * GetterMethod(TClass *cl=0)
Return a TMethodCall method responsible for getting the value of data member.
const char * GetFullTypeName() const
Get full type description of data member, e,g.: "class TDirectory*".
Long_t GetOffsetCint() const
Get offset from "this" using the information in CINT only.
All ROOT classes may have RTTI (run time type identification) support added.
Bool_t IsEnum() const
Return true if data member is an enum.
Int_t GetUnitSize() const
Get the sizeof the underlying type of the data member (i.e.
Bool_t TestBit(UInt_t f) const
const char * GetTypeName() const
Get type of data member, e,g.: "class TDirectory*" -> "TDirectory".
TMethodCall * fValueSetter
method that returns a value;
TList * GetOptions() const
Returns list of options - list of TOptionListItems.
TDataMember * fDataMember
TMethodCall * fValueGetter
Bool_t IsValid()
Return true if this data member object is pointing to a currently loaded data member.
Bool_t IsBasic() const
Return true if data member is a basic type, e.g. char, int, long...
#define ClassDef(name, id)
Long_t Property() const
Get property description word. For meaning of bits see EProperty.
TClass * fClass
pointer to CINT data member info
TDataType * GetDataType() const
virtual bool Update(DataMemberInfo_t *info)
Update the TFunction to reflect the new info.
virtual ~TDataMember()
TDataMember dtor deletes adopted CINT DataMemberInfo object.
Method or function calling interface.
void SetClass(TClass *cl)
TDataMember & operator=(const TDataMember &)
assignment operator
Int_t GetMaxIndex(Int_t dim) const
Return maximum index for array dimension "dim".
TList * fOptions
method which sets value;
Basic data type descriptor (datatype information is obtained from CINT).
This class defines an abstract interface that must be implemented by all classes that contain diction...
Int_t GetArrayDim() const
Return number of array dimensions.
The ROOT global object gROOT contains a list of all defined classes.
Long_t GetOffset() const
Get offset from "this".
const char * GetTrueTypeName() const
Get full type description of data member, e,g.: "class TDirectory*".
Long_t fValue
Data member to which this option belongs.
TDataType * fDataType
pointer to the class
Bool_t IsPersistent() const
Mother of all ROOT objects.
Int_t IsSTLContainer()
The return type is defined in TDictionary (kVector, kList, etc.)
Long_t fOffset
pointer to data basic type descriptor
const char * GetArrayIndex() const
If the data member is pointer and has a valid array size in its comments GetArrayIndex returns a stri...
TDataMember(const TDataMember &)
copy constructor
TClass * GetClass() const
Bool_t IsaPointer() const
Return true if data member is a pointer.
DeclId_t GetDeclId() const