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.
Classes | |
class | TParentBuf |
Public Types | |
enum | EObjectPointerState { kUnset , kNoObjectGiven , kValidObjectGiven } |
Public Member Functions | |
TMemberInspector () | |
virtual | ~TMemberInspector () |
void | AddToParent (const char *name) |
void | GenericShowMembers (const char *topClassName, const void *obj, Bool_t transientMember) |
EObjectPointerState | GetObjectValidity () const |
const char * | GetParent () const |
Ssiz_t | GetParentLen () const |
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) |
void | InspectMember (const char *topclassname, const void *pobj, const char *name, Bool_t transient) |
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 (TClass *cl, const void *pobj, const char *name, Bool_t isTransient) |
virtual TClass * | IsA () const |
virtual Bool_t | IsTreatingNonAccessibleTypes () |
void | RemoveFromParent (Ssiz_t startingAt) |
void | SetObjectValidity (EObjectPointerState val) |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Member Functions | |
TMemberInspector (const TMemberInspector &)=delete | |
TMemberInspector & | operator= (const TMemberInspector &)=delete |
Private Attributes | |
EObjectPointerState | fObjectPointerState |
TParentBuf * | fParent |
#include <TMemberInspector.h>
Enumerator | |
---|---|
kUnset | |
kNoObjectGiven | |
kValidObjectGiven |
Definition at line 33 of file TMemberInspector.h.
|
privatedelete |
TMemberInspector::TMemberInspector | ( | ) |
Definition at line 62 of file TMemberInspector.cxx.
|
virtual |
Definition at line 70 of file TMemberInspector.cxx.
void TMemberInspector::AddToParent | ( | const char * | name | ) |
Definition at line 87 of file TMemberInspector.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 79 of file TMemberInspector.h.
|
inlinestatic |
Definition at line 79 of file TMemberInspector.h.
void TMemberInspector::GenericShowMembers | ( | const char * | topClassName, |
const void * | obj, | ||
Bool_t | transientMember | ||
) |
Definition at line 105 of file TMemberInspector.cxx.
|
inline |
Definition at line 50 of file TMemberInspector.h.
const char * TMemberInspector::GetParent | ( | ) | const |
Definition at line 75 of file TMemberInspector.cxx.
Ssiz_t TMemberInspector::GetParentLen | ( | ) | const |
Definition at line 81 of file TMemberInspector.cxx.
|
virtual |
Reimplemented in TDumpMembers, TBuildRealData, and TAutoInspector.
Definition at line 99 of file TMemberInspector.cxx.
|
inlinevirtual |
Reimplemented in TDumpMembers, TBuildRealData, TAutoInspector, TDumpMembers, TBuildRealData, and TAutoInspector.
Definition at line 53 of file TMemberInspector.h.
void TMemberInspector::InspectMember | ( | const char * | topclassname, |
const void * | pobj, | ||
const char * | name, | ||
Bool_t | transient | ||
) |
Definition at line 139 of file TMemberInspector.cxx.
|
inline |
Definition at line 63 of file TMemberInspector.h.
Definition at line 132 of file TMemberInspector.cxx.
void TMemberInspector::InspectMember | ( | TClass * | cl, |
const void * | pobj, | ||
const char * | name, | ||
Bool_t | isTransient | ||
) |
Definition at line 150 of file TMemberInspector.cxx.
|
inlinevirtual |
Definition at line 79 of file TMemberInspector.h.
|
inlinevirtual |
Reimplemented in TAutoInspector.
Definition at line 60 of file TMemberInspector.h.
|
privatedelete |
void TMemberInspector::RemoveFromParent | ( | Ssiz_t | startingAt | ) |
Definition at line 93 of file TMemberInspector.cxx.
|
inline |
Definition at line 51 of file TMemberInspector.h.
|
virtual |
|
inline |
Definition at line 79 of file TMemberInspector.h.
|
private |
Definition at line 41 of file TMemberInspector.h.
|
private |
Definition at line 40 of file TMemberInspector.h.