Logo ROOT  
Reference Guide
TClingDataMemberInfo Class Referencefinal

Emulation of the CINT DataMemberInfo class.

The CINT C++ interpreter provides an interface to metadata about the data members of a class through the DataMemberInfo class. This class provides the same functionality, using an interface as close as possible to DataMemberInfo but the data member metadata comes from the Clang C++ compiler, not CINT.

Definition at line 55 of file TClingDataMemberInfo.h.

Public Types

typedef TDictionary::DeclId_t DeclId_t
 

Public Member Functions

 TClingDataMemberInfo (cling::Interpreter *, const clang::ValueDecl *, TClingClassInfo *)
 
 TClingDataMemberInfo (cling::Interpreter *, TClingClassInfo *)
 
 TClingDataMemberInfo (cling::Interpreter *interp)
 
 TClingDataMemberInfo (const TClingDataMemberInfo &rhs)
 
 ~TClingDataMemberInfo ()
 
int ArrayDim () const
 
TClingClassInfoGetClassInfo () const
 
const clang::Decl * GetDecl () const override
 
DeclId_t GetDeclId () const
 
int InternalNext ()
 
int MaxIndex (int dim) const
 
const char * Name () override
 
bool Next ()
 
long Offset ()
 
TClingDataMemberInfooperator= (const TClingDataMemberInfo &rhs)
 
long Property () const
 
const char * Title ()
 
const char * TypeName () const
 
long TypeProperty () const
 
int TypeSize () const
 
const char * TypeTrueName (const ROOT::TMetaUtils::TNormalizedCtxt &normCtxt) const
 
llvm::StringRef ValidArrayIndex () const
 
- Public Member Functions inherited from TClingDeclInfo
 TClingDeclInfo (const clang::Decl *D)
 
virtual ~TClingDeclInfo ()
 
clang::Decl * GetDecl ()
 
virtual const clang::Decl * GetDecl () const
 
virtual bool IsValid () const
 
virtual const char * Name ()
 

Private Member Functions

void CheckForIoTypeAndName () const
 

Private Attributes

TClingClassInfofClassInfo
 
union {
   double   fDouble
 
   float   fFloat
 
   long   fLong
 
fConstInitVal
 
unsigned int fContextIdx
 
llvm::SmallVector< clang::DeclContext *, 2 > fContexts
 
bool fFirstTime
 
cling::Interpreter * fInterp
 
std::string fIoName
 
std::string fIoType
 
clang::DeclContext::decl_iterator fIter
 
std::vector< clang::DeclContext::decl_iterator > fIterStack
 
std::string fTitle
 

Additional Inherited Members

- Protected Attributes inherited from TClingDeclInfo
const clang::Decl * fDecl = nullptr
 
std::string fNameCache
 

#include </home/sftnight/build/workspace/root-makedoc-v620/rootspi/rdoc/src/v6-20-00-patches/core/metacling/src/TClingDataMemberInfo.h>

Inheritance diagram for TClingDataMemberInfo:
[legend]

Member Typedef Documentation

◆ DeclId_t

Constructor & Destructor Documentation

◆ ~TClingDataMemberInfo()

TClingDataMemberInfo::~TClingDataMemberInfo ( )
inline

Definition at line 80 of file TClingDataMemberInfo.h.

◆ TClingDataMemberInfo() [1/4]

TClingDataMemberInfo::TClingDataMemberInfo ( cling::Interpreter *  interp)
inlineexplicit

Definition at line 82 of file TClingDataMemberInfo.h.

◆ TClingDataMemberInfo() [2/4]

TClingDataMemberInfo::TClingDataMemberInfo ( cling::Interpreter *  interp,
TClingClassInfo ci 
)

Definition at line 48 of file TClingDataMemberInfo.cxx.

◆ TClingDataMemberInfo() [3/4]

TClingDataMemberInfo::TClingDataMemberInfo ( cling::Interpreter *  interp,
const clang::ValueDecl *  ValD,
TClingClassInfo ci 
)

Definition at line 78 of file TClingDataMemberInfo.cxx.

◆ TClingDataMemberInfo() [4/4]

TClingDataMemberInfo::TClingDataMemberInfo ( const TClingDataMemberInfo rhs)
inline

Definition at line 97 of file TClingDataMemberInfo.h.

Member Function Documentation

◆ ArrayDim()

int TClingDataMemberInfo::ArrayDim ( ) const

Definition at line 124 of file TClingDataMemberInfo.cxx.

◆ CheckForIoTypeAndName()

void TClingDataMemberInfo::CheckForIoTypeAndName ( ) const
inlineprivate

Definition at line 98 of file TClingDataMemberInfo.cxx.

◆ GetClassInfo()

TClingClassInfo * TClingDataMemberInfo::GetClassInfo ( ) const
inline

Definition at line 127 of file TClingDataMemberInfo.h.

◆ GetDecl()

const clang::Decl * TClingDataMemberInfo::GetDecl ( ) const
inlineoverridevirtual

Reimplemented from TClingDeclInfo.

Definition at line 128 of file TClingDataMemberInfo.h.

◆ GetDeclId()

TDictionary::DeclId_t TClingDataMemberInfo::GetDeclId ( ) const

Definition at line 116 of file TClingDataMemberInfo.cxx.

◆ InternalNext()

int TClingDataMemberInfo::InternalNext ( )

Definition at line 238 of file TClingDataMemberInfo.cxx.

◆ MaxIndex()

int TClingDataMemberInfo::MaxIndex ( int  dim) const

Definition at line 171 of file TClingDataMemberInfo.cxx.

◆ Name()

const char * TClingDataMemberInfo::Name ( )
overridevirtual

Reimplemented from TClingDeclInfo.

Definition at line 595 of file TClingDataMemberInfo.cxx.

◆ Next()

bool TClingDataMemberInfo::Next ( )
inline

Definition at line 136 of file TClingDataMemberInfo.h.

◆ Offset()

long TClingDataMemberInfo::Offset ( )

Definition at line 309 of file TClingDataMemberInfo.cxx.

◆ operator=()

TClingDataMemberInfo & TClingDataMemberInfo::operator= ( const TClingDataMemberInfo rhs)
inline

Definition at line 109 of file TClingDataMemberInfo.h.

◆ Property()

long TClingDataMemberInfo::Property ( ) const

Definition at line 388 of file TClingDataMemberInfo.cxx.

◆ Title()

const char * TClingDataMemberInfo::Title ( )

Definition at line 607 of file TClingDataMemberInfo.cxx.

◆ TypeName()

const char * TClingDataMemberInfo::TypeName ( ) const

Definition at line 533 of file TClingDataMemberInfo.cxx.

◆ TypeProperty()

long TClingDataMemberInfo::TypeProperty ( ) const

Definition at line 499 of file TClingDataMemberInfo.cxx.

◆ TypeSize()

int TClingDataMemberInfo::TypeSize ( ) const

Definition at line 509 of file TClingDataMemberInfo.cxx.

◆ TypeTrueName()

const char * TClingDataMemberInfo::TypeTrueName ( const ROOT::TMetaUtils::TNormalizedCtxt &  normCtxt) const

Definition at line 563 of file TClingDataMemberInfo.cxx.

◆ ValidArrayIndex()

llvm::StringRef TClingDataMemberInfo::ValidArrayIndex ( ) const

Definition at line 643 of file TClingDataMemberInfo.cxx.

Member Data Documentation

◆ fClassInfo

TClingClassInfo* TClingDataMemberInfo::fClassInfo
private

Definition at line 60 of file TClingDataMemberInfo.h.

◆ 

union { ... } TClingDataMemberInfo::fConstInitVal

◆ fContextIdx

unsigned int TClingDataMemberInfo::fContextIdx
private

Definition at line 68 of file TClingDataMemberInfo.h.

◆ fContexts

llvm::SmallVector<clang::DeclContext *, 2> TClingDataMemberInfo::fContexts
private

Definition at line 66 of file TClingDataMemberInfo.h.

◆ fDouble

double TClingDataMemberInfo::fDouble

Definition at line 73 of file TClingDataMemberInfo.h.

◆ fFirstTime

bool TClingDataMemberInfo::fFirstTime
private

Definition at line 61 of file TClingDataMemberInfo.h.

◆ fFloat

float TClingDataMemberInfo::fFloat

Definition at line 72 of file TClingDataMemberInfo.h.

◆ fInterp

cling::Interpreter* TClingDataMemberInfo::fInterp
private

Definition at line 59 of file TClingDataMemberInfo.h.

◆ fIoName

std::string TClingDataMemberInfo::fIoName
mutableprivate

Definition at line 70 of file TClingDataMemberInfo.h.

◆ fIoType

std::string TClingDataMemberInfo::fIoType
mutableprivate

Definition at line 69 of file TClingDataMemberInfo.h.

◆ fIter

clang::DeclContext::decl_iterator TClingDataMemberInfo::fIter
private

Definition at line 62 of file TClingDataMemberInfo.h.

◆ fIterStack

std::vector<clang::DeclContext::decl_iterator> TClingDataMemberInfo::fIterStack
private

Definition at line 63 of file TClingDataMemberInfo.h.

◆ fLong

long TClingDataMemberInfo::fLong

Definition at line 74 of file TClingDataMemberInfo.h.

◆ fTitle

std::string TClingDataMemberInfo::fTitle
private

Definition at line 64 of file TClingDataMemberInfo.h.


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