ROOT » CORE » BASE » TMemberInspector

class TMemberInspector


TMemberInspector

Abstract base class for accessing the datamembers of a class.
Classes derived from this class can be given as argument to the
ShowMembers() methods of ROOT classes. This feature facilitates
the writing of class browsers and inspectors.


Function Members (Methods)

public:
virtual~TMemberInspector()
voidAddToParent(const char* name)
static TClass*Class()
voidGenericShowMembers(const char* topClassName, const void* obj, Bool_t transientMember)
TMemberInspector::EObjectPointerStateGetObjectValidity() const
const char*GetParent() const
Ssiz_tGetParentLen() const
virtual voidInspect(TClass* cl, const char* parent, const char* name, const void* addr)
virtual voidInspect(TClass* cl, const char* parent, const char* name, const void* addr, Bool_t)
voidInspectMember(const TObject& obj, const char* name, Bool_t isTransient)
voidInspectMember(const char* topclassname, const void* pobj, const char* name, Bool_t transient)
voidInspectMember(TClass* cl, const void* pobj, const char* name, Bool_t isTransient)
virtual TClass*IsA() const
virtual Bool_tIsTreatingNonAccessibleTypes()
voidRemoveFromParent(Ssiz_t startingAt)
voidSetObjectValidity(TMemberInspector::EObjectPointerState val)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TMemberInspector()

Data Members

public:
static TMemberInspector::EObjectPointerStatekNoObjectGiven
static TMemberInspector::EObjectPointerStatekUnset
static TMemberInspector::EObjectPointerStatekValidObjectGiven
private:
TMemberInspector::EObjectPointerStatefObjectPointerStatewhether the address is valid or only an offset
TMemberInspector::TParentBuf*fParentcurrent inspection "path"

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TMemberInspector()
 Construct a member inspector
~TMemberInspector()
 Destruct a member inspector
const char* GetParent() const
 Get the parent string.
Ssiz_t GetParentLen() const
 Get the length of the parent string.
void AddToParent(const char* name)
 Append "name" to the parent string.
void RemoveFromParent(Ssiz_t startingAt)
 Remove trailing characters starting at "startingAt".
void Inspect(TClass* cl, const char* parent, const char* name, const void* addr)
 Obsolete signature
void GenericShowMembers(const char* topClassName, const void* obj, Bool_t transientMember)
 Call ShowMember() on obj.
 This could be faster if we implemented this either as a templated
 function or by rootcint-generated code using the typeid (i.e. the
 difference is a lookup in a TList instead of in a map).
 To avoid a spurrious error message in case the data member is
 transient and does not have a dictionary we check first.
void InspectMember(const TObject& obj, const char* name, Bool_t isTransient)
 Routine driving the visiting of the class information/data members.
void InspectMember(const char* topclassname, const void* pobj, const char* name, Bool_t transient)
 Routine driving the visiting of the class information/data members.
void InspectMember(TClass* cl, const void* pobj, const char* name, Bool_t isTransient)
 Routine driving the visiting of the class information/data members.
kUnset, // No Inspect()
TMemberInspector(const TMemberInspector& )
TMemberInspector & operator=(const TMemberInspector& )
EObjectPointerState GetObjectValidity() const
void SetObjectValidity(TMemberInspector::EObjectPointerState val)
Bool_t IsTreatingNonAccessibleTypes()
{return kTRUE;}
obj. IsA()