ROOT
6.06/09
Reference Guide
|
Abstract base class for accessing the data-members 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.
Definition at line 31 of file TMemberInspector.h.
Public Types | |
enum | EObjectPointerState { kUnset, kNoObjectGiven, kValidObjectGiven } |
Public Member Functions | |
TMemberInspector () | |
virtual | ~TMemberInspector () |
EObjectPointerState | GetObjectValidity () const |
void | SetObjectValidity (EObjectPointerState val) |
virtual void | Inspect (TClass *cl, const char *parent, const char *name, const void *addr) |
virtual void | Inspect (TClass *cl, const char *parent, const char *name, const void *addr, Bool_t) |
const char * | GetParent () const |
Ssiz_t | GetParentLen () const |
void | AddToParent (const char *name) |
void | RemoveFromParent (Ssiz_t startingAt) |
virtual Bool_t | IsTreatingNonAccessibleTypes () |
template<class T > | |
void | InspectMember (const T &obj, const char *name, Bool_t isTransient) |
void | InspectMember (const TObject &obj, const char *name, Bool_t isTransient) |
void | InspectMember (const char *topclassname, const void *pobj, const char *name, Bool_t transient) |
void | InspectMember (TClass *cl, const void *pobj, const char *name, Bool_t isTransient) |
void | GenericShowMembers (const char *topClassName, const void *obj, Bool_t transientMember) |
Private Member Functions | |
TMemberInspector (const TMemberInspector &) | |
TMemberInspector & | operator= (const TMemberInspector &) |
Private Attributes | |
TParentBuf * | fParent |
EObjectPointerState | fObjectPointerState |
#include <TMemberInspector.h>
Enumerator | |
---|---|
kUnset | |
kNoObjectGiven | |
kValidObjectGiven |
Definition at line 33 of file TMemberInspector.h.
|
private |
TMemberInspector::TMemberInspector | ( | ) |
|
virtual |
Definition at line 69 of file TMemberInspector.cxx.
void TMemberInspector::AddToParent | ( | const char * | name | ) |
Definition at line 86 of file TMemberInspector.cxx.
Referenced by InspectMember().
void TMemberInspector::GenericShowMembers | ( | const char * | topClassName, |
const void * | obj, | ||
Bool_t | transientMember | ||
) |
Definition at line 104 of file TMemberInspector.cxx.
Referenced by ROOT::Internal::GenericShowMembers(), and InspectMember().
|
inline |
Definition at line 50 of file TMemberInspector.h.
Referenced by TCling::InspectMembers().
const char * TMemberInspector::GetParent | ( | ) | const |
Definition at line 74 of file TMemberInspector.cxx.
Referenced by TStreamerInfo::CallShowMembers(), and TCling::InspectMembers().
Ssiz_t TMemberInspector::GetParentLen | ( | ) | const |
Definition at line 80 of file TMemberInspector.cxx.
Referenced by InspectMember().
|
virtual |
Definition at line 98 of file TMemberInspector.cxx.
Referenced by TStreamerInfo::CallShowMembers(), and TCling::InspectMembers().
|
inlinevirtual |
Definition at line 53 of file TMemberInspector.h.
Referenced by Inspect().
|
inline |
Definition at line 63 of file TMemberInspector.h.
Referenced by TStreamerInfo::CallShowMembers(), and TCling::InspectMembers().
Definition at line 131 of file TMemberInspector.cxx.
void TMemberInspector::InspectMember | ( | const char * | topclassname, |
const void * | pobj, | ||
const char * | name, | ||
Bool_t | transient | ||
) |
Definition at line 138 of file TMemberInspector.cxx.
void TMemberInspector::InspectMember | ( | TClass * | cl, |
const void * | pobj, | ||
const char * | name, | ||
Bool_t | isTransient | ||
) |
Definition at line 149 of file TMemberInspector.cxx.
|
inlinevirtual |
Definition at line 60 of file TMemberInspector.h.
Referenced by TCling::InspectMembers().
|
private |
Definition at line 92 of file TMemberInspector.cxx.
Referenced by InspectMember().
|
inline |
Definition at line 51 of file TMemberInspector.h.
Referenced by TCling::InspectMembers().
|
private |
Definition at line 41 of file TMemberInspector.h.
Referenced by GetObjectValidity().
|
private |
Definition at line 39 of file TMemberInspector.h.
Referenced by AddToParent(), GetParent(), GetParentLen(), InspectMember(), RemoveFromParent(), and ~TMemberInspector().