Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TClingMethodArgInfo Class Referencefinal

Emulation of the CINT MethodInfo class.

The CINT C++ interpreter provides an interface to metadata about the arguments to a function through the MethodArgInfo class. This class provides the same functionality, using an interface as close as possible to MethodArgInfo but the typedef metadata comes from the Clang C++ compiler, not CINT.

Definition at line 44 of file TClingMethodArgInfo.h.

Public Member Functions

 TClingMethodArgInfo (cling::Interpreter *interp)
 TClingMethodArgInfo (cling::Interpreter *interp, const TClingMethodInfo *mi)
const char * DefaultValue () const
clang::Decl * GetDecl ()
const clang::ParmVarDecl * GetDecl () const override
bool IsValid () const override
virtual const char * Name () const
int Next ()
long Property () const
const TClingTypeInfoType () const
const char * TypeName () const

Protected Member Functions

long Property (long property, clang::QualType &qt) const

Protected Attributes

const clang::Decl * fDecl = nullptr
std::string fNameCache

Private Attributes

int fIdx
cling::Interpreter * fInterp

#include </home/stephan/code/root-2/core/metacling/src/TClingMethodArgInfo.h>

Inheritance diagram for TClingMethodArgInfo:
TClingDeclInfo

Constructor & Destructor Documentation

◆ TClingMethodArgInfo() [1/2]

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

Definition at line 53 of file TClingMethodArgInfo.h.

◆ TClingMethodArgInfo() [2/2]

TClingMethodArgInfo::TClingMethodArgInfo ( cling::Interpreter * interp,
const TClingMethodInfo * mi )

Definition at line 43 of file TClingMethodArgInfo.cxx.

Member Function Documentation

◆ DefaultValue()

const char * TClingMethodArgInfo::DefaultValue ( ) const

Definition at line 80 of file TClingMethodArgInfo.cxx.

◆ GetDecl() [1/2]

clang::Decl * TClingDeclInfo::GetDecl ( )
inlineinherited

Definition at line 39 of file TClingDeclInfo.h.

◆ GetDecl() [2/2]

const clang::ParmVarDecl * TClingMethodArgInfo::GetDecl ( ) const
inlineoverridevirtual

Reimplemented from TClingDeclInfo.

Definition at line 57 of file TClingMethodArgInfo.h.

◆ IsValid()

bool TClingMethodArgInfo::IsValid ( ) const
overridevirtual

Reimplemented from TClingDeclInfo.

Definition at line 45 of file TClingMethodArgInfo.cxx.

◆ Name()

const char * TClingDeclInfo::Name ( ) const
virtualinherited

Reimplemented in TClingDataMemberInfo, TClingMethodInfo, TClingTypedefInfo, and TClingTypeInfo.

Definition at line 29 of file TClingDeclInfo.cxx.

◆ Next()

int TClingMethodArgInfo::Next ( )

Definition at line 58 of file TClingMethodArgInfo.cxx.

◆ Property() [1/2]

long TClingDeclInfo::Property ( long property,
clang::QualType & qt ) const
protectedinherited

Definition at line 49 of file TClingDeclInfo.cxx.

◆ Property() [2/2]

long TClingMethodArgInfo::Property ( ) const

Definition at line 65 of file TClingMethodArgInfo.cxx.

◆ Type()

const TClingTypeInfo * TClingMethodArgInfo::Type ( ) const

Definition at line 134 of file TClingMethodArgInfo.cxx.

◆ TypeName()

const char * TClingMethodArgInfo::TypeName ( ) const

Definition at line 146 of file TClingMethodArgInfo.cxx.

Member Data Documentation

◆ fDecl

const clang::Decl* TClingDeclInfo::fDecl = nullptr
protectedinherited

Definition at line 30 of file TClingDeclInfo.h.

◆ fIdx

int TClingMethodArgInfo::fIdx
private

Definition at line 49 of file TClingMethodArgInfo.h.

◆ fInterp

cling::Interpreter* TClingMethodArgInfo::fInterp
private

Definition at line 48 of file TClingMethodArgInfo.h.

◆ fNameCache

std::string TClingDeclInfo::fNameCache
mutableprotectedinherited

Definition at line 31 of file TClingDeclInfo.h.


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