23 #include "TClassEdit.h" 27 class TMemberInspector::TParentBuf {
29 std::vector<char> fBuf;
32 TParentBuf(): fBuf(1024), fLen(0) {}
33 Ssiz_t GetLength()
const {
return fLen; }
34 void Append(
const char*);
35 void Remove(
Ssiz_t startingAt);
36 operator const char*()
const {
return &fBuf[0]; }
39 void TMemberInspector::TParentBuf::Append(
const char* add)
42 if (!add || !add[0])
return;
43 Ssiz_t addlen = strlen(add);
44 fBuf.reserve(fLen + addlen);
53 void TMemberInspector::TParentBuf::Remove(
Ssiz_t startingAt)
102 Fatal(
"Inspect",
"This version of Inspect is obsolete");
116 if (!TClassEdit::IsSTLCont(topClassName)) {
117 ClassInfo_t *
b =
gInterpreter->ClassInfo_Factory(topClassName);
120 if (!isloaded)
return;
136 InspectMember<TObject>(obj,
name, isTransient);
void GenericShowMembers(const char *topClassName, const void *obj, Bool_t transientMember)
Ssiz_t GetParentLen() const
void Fatal(const char *location, const char *msgfmt,...)
Abstract base class for accessing the data-members of a class.
virtual ~TMemberInspector()
EObjectPointerState fObjectPointerState
The ROOT global object gROOT contains a list of all defined classes.
void AddToParent(const char *name)
Bool_t CallShowMembers(const void *obj, TMemberInspector &insp, Bool_t isTransient=kFALSE) const
Call ShowMembers() on the obj of this class type, passing insp and parent.
void RemoveFromParent(Ssiz_t startingAt)
const char * GetParent() const
void InspectMember(const T &obj, const char *name, Bool_t isTransient)
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
Mother of all ROOT objects.
virtual void Inspect(TClass *cl, const char *parent, const char *name, const void *addr)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b