Logo ROOT   6.08/07
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
TMemberInspector Class Reference

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 ()
 
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)
 
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)
 
virtual Bool_t IsTreatingNonAccessibleTypes ()
 
void RemoveFromParent (Ssiz_t startingAt)
 
void SetObjectValidity (EObjectPointerState val)
 

Private Member Functions

 TMemberInspector (const TMemberInspector &)
 
TMemberInspectoroperator= (const TMemberInspector &)
 

Private Attributes

EObjectPointerState fObjectPointerState
 
TParentBuf * fParent
 

#include <TMemberInspector.h>

Inheritance diagram for TMemberInspector:
[legend]

Member Enumeration Documentation

◆ EObjectPointerState

Enumerator
kUnset 
kNoObjectGiven 
kValidObjectGiven 

Definition at line 33 of file TMemberInspector.h.

Constructor & Destructor Documentation

◆ TMemberInspector() [1/2]

TMemberInspector::TMemberInspector ( const TMemberInspector )
private

◆ TMemberInspector() [2/2]

TMemberInspector::TMemberInspector ( )

Definition at line 62 of file TMemberInspector.cxx.

◆ ~TMemberInspector()

TMemberInspector::~TMemberInspector ( )
virtual

Definition at line 70 of file TMemberInspector.cxx.

Member Function Documentation

◆ AddToParent()

void TMemberInspector::AddToParent ( const char *  name)

Definition at line 87 of file TMemberInspector.cxx.

◆ GenericShowMembers()

void TMemberInspector::GenericShowMembers ( const char *  topClassName,
const void obj,
Bool_t  transientMember 
)

Definition at line 105 of file TMemberInspector.cxx.

◆ GetObjectValidity()

EObjectPointerState TMemberInspector::GetObjectValidity ( ) const
inline

Definition at line 50 of file TMemberInspector.h.

◆ GetParent()

const char * TMemberInspector::GetParent ( ) const

Definition at line 75 of file TMemberInspector.cxx.

◆ GetParentLen()

Ssiz_t TMemberInspector::GetParentLen ( ) const

Definition at line 81 of file TMemberInspector.cxx.

◆ Inspect() [1/2]

void TMemberInspector::Inspect ( TClass cl,
const char *  parent,
const char *  name,
const void addr 
)
virtual

Definition at line 99 of file TMemberInspector.cxx.

◆ Inspect() [2/2]

virtual void TMemberInspector::Inspect ( TClass cl,
const char *  parent,
const char *  name,
const void addr,
Bool_t   
)
inlinevirtual

Definition at line 53 of file TMemberInspector.h.

◆ InspectMember() [1/4]

template<class T >
void TMemberInspector::InspectMember ( const T &  obj,
const char *  name,
Bool_t  isTransient 
)
inline

Definition at line 63 of file TMemberInspector.h.

◆ InspectMember() [2/4]

void TMemberInspector::InspectMember ( const TObject obj,
const char *  name,
Bool_t  isTransient 
)

Definition at line 132 of file TMemberInspector.cxx.

◆ InspectMember() [3/4]

void TMemberInspector::InspectMember ( const char *  topclassname,
const void pobj,
const char *  name,
Bool_t  transient 
)

Definition at line 139 of file TMemberInspector.cxx.

◆ InspectMember() [4/4]

void TMemberInspector::InspectMember ( TClass cl,
const void pobj,
const char *  name,
Bool_t  isTransient 
)

Definition at line 150 of file TMemberInspector.cxx.

◆ IsTreatingNonAccessibleTypes()

virtual Bool_t TMemberInspector::IsTreatingNonAccessibleTypes ( )
inlinevirtual

Definition at line 60 of file TMemberInspector.h.

◆ operator=()

TMemberInspector& TMemberInspector::operator= ( const TMemberInspector )
private

◆ RemoveFromParent()

void TMemberInspector::RemoveFromParent ( Ssiz_t  startingAt)

Definition at line 93 of file TMemberInspector.cxx.

◆ SetObjectValidity()

void TMemberInspector::SetObjectValidity ( EObjectPointerState  val)
inline

Definition at line 51 of file TMemberInspector.h.

Member Data Documentation

◆ fObjectPointerState

EObjectPointerState TMemberInspector::fObjectPointerState
private

Definition at line 41 of file TMemberInspector.h.

◆ fParent

TParentBuf* TMemberInspector::fParent
private

Definition at line 39 of file TMemberInspector.h.


The documentation for this class was generated from the following files: