ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ()
 
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 &)
 
TMemberInspectoroperator= (const TMemberInspector &)
 

Private Attributes

TParentBuf * fParent
 
EObjectPointerState fObjectPointerState
 

#include <TMemberInspector.h>

Inheritance diagram for TMemberInspector:
[legend]

Member Enumeration Documentation

Enumerator
kUnset 
kNoObjectGiven 
kValidObjectGiven 

Definition at line 33 of file TMemberInspector.h.

Constructor & Destructor Documentation

TMemberInspector::TMemberInspector ( const TMemberInspector )
private
TMemberInspector::TMemberInspector ( )
TMemberInspector::~TMemberInspector ( )
virtual

Definition at line 69 of file TMemberInspector.cxx.

Member Function Documentation

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().

EObjectPointerState TMemberInspector::GetObjectValidity ( ) const
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().

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

Definition at line 98 of file TMemberInspector.cxx.

Referenced by TStreamerInfo::CallShowMembers(), and TCling::InspectMembers().

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.

Referenced by Inspect().

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

Definition at line 63 of file TMemberInspector.h.

Referenced by TStreamerInfo::CallShowMembers(), and TCling::InspectMembers().

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

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.

virtual Bool_t TMemberInspector::IsTreatingNonAccessibleTypes ( )
inlinevirtual

Definition at line 60 of file TMemberInspector.h.

Referenced by TCling::InspectMembers().

TMemberInspector& TMemberInspector::operator= ( const TMemberInspector )
private
void TMemberInspector::RemoveFromParent ( Ssiz_t  startingAt)

Definition at line 92 of file TMemberInspector.cxx.

Referenced by InspectMember().

void TMemberInspector::SetObjectValidity ( EObjectPointerState  val)
inline

Definition at line 51 of file TMemberInspector.h.

Referenced by TCling::InspectMembers().

Member Data Documentation

EObjectPointerState TMemberInspector::fObjectPointerState
private

Definition at line 41 of file TMemberInspector.h.

Referenced by GetObjectValidity(), and SetObjectValidity().

TParentBuf* TMemberInspector::fParent
private
Collaboration diagram for TMemberInspector:
[legend]

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