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