Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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.

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 TClassIsA () 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 TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Private Member Functions

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

Private Attributes

EObjectPointerState fObjectPointerState
 
TParentBuffParent
 

#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 )
privatedelete

◆ 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.

◆ Class()

static TClass * TMemberInspector::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TMemberInspector::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TMemberInspector::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 79 of file TMemberInspector.h.

◆ DeclFileName()

static const char * TMemberInspector::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 79 of file TMemberInspector.h.

◆ 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

Reimplemented in TDumpMembers, TBuildRealData, and TAutoInspector.

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

◆ InspectMember() [1/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() [2/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() [3/4]

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

Definition at line 132 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.

◆ IsA()

virtual TClass * TMemberInspector::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Definition at line 79 of file TMemberInspector.h.

◆ IsTreatingNonAccessibleTypes()

virtual Bool_t TMemberInspector::IsTreatingNonAccessibleTypes ( )
inlinevirtual

Reimplemented in TAutoInspector.

Definition at line 60 of file TMemberInspector.h.

◆ operator=()

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

◆ 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.

◆ Streamer()

virtual void TMemberInspector::Streamer ( TBuffer )
virtual

◆ StreamerNVirtual()

void TMemberInspector::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 79 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 40 of file TMemberInspector.h.

  • core/base/inc/TMemberInspector.h
  • core/base/src/TMemberInspector.cxx