Logo ROOT  
Reference Guide
Cppyy Namespace Reference

Typedefs

typedef voidTCppEnum_t
 
typedef Long_t TCppIndex_t
 
typedef ptrdiff_t TCppMethod_t
 
typedef void *(* TCppMethPtrGetter_t) (TCppObject_t)
 
typedef voidTCppObject_t
 
typedef ptrdiff_t TCppScope_t
 
typedef TCppScope_t TCppType_t
 

Functions

void AddSmartPtrType (const std::string &)
 
TCppObject_t Allocate (TCppType_t type)
 
voidAllocateFunctionArgs (size_t nargs)
 
UChar_t CallB (TCppMethod_t method, TCppObject_t self, void *args)
 
Char_t CallC (TCppMethod_t method, TCppObject_t self, void *args)
 
TCppObject_t CallConstructor (TCppMethod_t method, TCppType_t type, void *args)
 
Double_t CallD (TCppMethod_t method, TCppObject_t self, void *args)
 
void CallDestructor (TCppType_t type, TCppObject_t self)
 
Float_t CallF (TCppMethod_t method, TCppObject_t self, void *args)
 
Short_t CallH (TCppMethod_t method, TCppObject_t self, void *args)
 
Int_t CallI (TCppMethod_t method, TCppObject_t self, void *args)
 
Long_t CallL (TCppMethod_t method, TCppObject_t self, void *args)
 
LongDouble_t CallLD (TCppMethod_t method, TCppObject_t self, void *args)
 
Long64_t CallLL (TCppMethod_t method, TCppObject_t self, void *args)
 
TCppObject_t CallO (TCppMethod_t method, TCppObject_t self, void *args, TCppType_t result_type)
 
voidCallR (TCppMethod_t method, TCppObject_t self, void *args)
 
Char_tCallS (TCppMethod_t method, TCppObject_t self, void *args)
 
void CallV (TCppMethod_t method, TCppObject_t self, void *args)
 
TCppObject_t Construct (TCppType_t type)
 
void Deallocate (TCppType_t type, TCppObject_t instance)
 
void DeallocateFunctionArgs (void *args)
 
void Destruct (TCppType_t type, TCppObject_t instance)
 
bool ExistsMethodTemplate (TCppScope_t scope, const std::string &name)
 
TCppType_t GetActualClass (TCppType_t klass, TCppObject_t obj)
 
std::string GetBaseName (TCppType_t type, TCppIndex_t ibase)
 
ptrdiff_t GetBaseOffset (TCppType_t derived, TCppType_t base, TCppObject_t address, int direction, bool rerror=false)
 
TCppIndex_t GetDatamemberIndex (TCppScope_t scope, const std::string &name)
 
std::string GetDatamemberName (TCppScope_t scope, TCppIndex_t idata)
 
ptrdiff_t GetDatamemberOffset (TCppScope_t scope, TCppIndex_t idata)
 
std::string GetDatamemberType (TCppScope_t scope, TCppIndex_t idata)
 
Int_t GetDimensionSize (TCppScope_t scope, TCppIndex_t idata, int dimension)
 
TCppEnum_t GetEnum (TCppScope_t scope, const std::string &enum_name)
 
std::string GetEnumDataName (TCppEnum_t, TCppIndex_t idata)
 
long long GetEnumDataValue (TCppEnum_t, TCppIndex_t idata)
 
std::string GetFinalName (TCppType_t type)
 
size_t GetFunctionArgSizeof ()
 
size_t GetFunctionArgTypeoffset ()
 
TCppIndex_t GetGlobalOperator (TCppType_t scope, TCppType_t lc, TCppScope_t rc, const std::string &op)
 
TCppMethod_t GetMethod (TCppScope_t scope, TCppIndex_t imeth)
 
std::string GetMethodArgDefault (TCppMethod_t, int iarg)
 
std::string GetMethodArgName (TCppMethod_t, int iarg)
 
std::string GetMethodArgType (TCppMethod_t, int iarg)
 
TCppIndex_t GetMethodIndexAt (TCppScope_t scope, TCppIndex_t imeth)
 
std::string GetMethodName (TCppMethod_t)
 
TCppIndex_t GetMethodNumArgs (TCppMethod_t)
 
TCppIndex_t GetMethodNumTemplateArgs (TCppScope_t scope, TCppIndex_t imeth)
 
TCppIndex_t GetMethodReqArgs (TCppMethod_t)
 
std::string GetMethodResultType (TCppMethod_t)
 
std::vector< TCppMethod_tGetMethodsFromName (TCppScope_t scope, const std::string &name, bool alsoInBases=false)
 
std::string GetMethodSignature (TCppScope_t scope, TCppIndex_t imeth)
 
TCppMethod_t GetMethodTemplate (TCppScope_t scope, const std::string &name, const std::string &proto)
 
std::string GetMethodTemplateArgName (TCppScope_t scope, TCppIndex_t imeth, TCppIndex_t iarg)
 
TCppMethPtrGetter_t GetMethPtrGetter (TCppScope_t scope, TCppIndex_t imeth)
 
std::string GetName (const std::string &scope_name)
 
TCppIndex_t GetNumBases (TCppType_t type)
 
TCppIndex_t GetNumDatamembers (TCppScope_t scope)
 
TCppIndex_t GetNumEnumData (TCppEnum_t)
 
TCppIndex_t GetNumMethods (TCppScope_t scope)
 
TCppIndex_t GetNumScopes (TCppScope_t parent)
 
TCppScope_t GetScope (const std::string &scope_name)
 
std::string GetScopedFinalName (TCppType_t type)
 
std::string GetScopeName (TCppScope_t parent, TCppIndex_t iscope)
 
TCppType_t GetTemplate (const std::string &template_name)
 
Bool_t HasComplexHierarchy (TCppType_t type)
 
Bool_t IsAbstract (TCppType_t type)
 
Bool_t IsBuiltin (const std::string &type_name)
 
Bool_t IsComplete (const std::string &type_name)
 
Bool_t IsConstData (TCppScope_t scope, TCppIndex_t idata)
 
Bool_t IsConstMethod (TCppMethod_t)
 
Bool_t IsConstructor (TCppMethod_t method)
 
Bool_t IsEnum (const std::string &type_name)
 
Bool_t IsEnumData (TCppScope_t scope, TCppIndex_t idata)
 
Bool_t IsMethodTemplate (TCppMethod_t)
 
Bool_t IsNamespace (TCppScope_t scope)
 
Bool_t IsPublicData (TCppScope_t scope, TCppIndex_t idata)
 
Bool_t IsPublicMethod (TCppMethod_t method)
 
Bool_t IsSmartPtr (const std::string &)
 
Bool_t IsStaticData (TCppScope_t scope, TCppIndex_t idata)
 
Bool_t IsStaticMethod (TCppMethod_t method)
 
Bool_t IsSubtype (TCppType_t derived, TCppType_t base)
 
std::string ResolveEnum (const std::string &enum_type)
 
std::string ResolveEnum (const TEnum *en)
 
std::string ResolveName (const std::string &cppitem_name)
 
size_t SizeOf (TCppType_t klass)
 

Variables

TCppScope_t gGlobalScope = GLOBAL_HANDLE
 

Typedef Documentation

◆ TCppEnum_t

Definition at line 19 of file Cppyy.h.

◆ TCppIndex_t

Definition at line 21 of file Cppyy.h.

◆ TCppMethod_t

typedef ptrdiff_t Cppyy::TCppMethod_t

Definition at line 18 of file Cppyy.h.

◆ TCppMethPtrGetter_t

typedef void *(* Cppyy::TCppMethPtrGetter_t) (TCppObject_t)

Definition at line 22 of file Cppyy.h.

◆ TCppObject_t

Definition at line 17 of file Cppyy.h.

◆ TCppScope_t

typedef ptrdiff_t Cppyy::TCppScope_t

Definition at line 15 of file Cppyy.h.

◆ TCppType_t

Definition at line 16 of file Cppyy.h.

Function Documentation

◆ AddSmartPtrType()

void Cppyy::AddSmartPtrType ( const std::string &  type_name)

Definition at line 631 of file Cppyy.cxx.

◆ Allocate()

Cppyy::TCppObject_t Cppyy::Allocate ( TCppType_t  type)

Definition at line 275 of file Cppyy.cxx.

◆ AllocateFunctionArgs()

void * Cppyy::AllocateFunctionArgs ( size_t  nargs)

Definition at line 538 of file Cppyy.cxx.

◆ CallB()

UChar_t Cppyy::CallB ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallC()

Char_t Cppyy::CallC ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallConstructor()

Cppyy::TCppObject_t Cppyy::CallConstructor ( TCppMethod_t  method,
TCppType_t  type,
void args 
)

Definition at line 505 of file Cppyy.cxx.

◆ CallD()

Double_t Cppyy::CallD ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallDestructor()

void Cppyy::CallDestructor ( TCppType_t  type,
TCppObject_t  self 
)

Definition at line 513 of file Cppyy.cxx.

◆ CallF()

Float_t Cppyy::CallF ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallH()

Short_t Cppyy::CallH ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallI()

Int_t Cppyy::CallI ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallL()

Long_t Cppyy::CallL ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallLD()

LongDouble_t Cppyy::CallLD ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallLL()

Long64_t Cppyy::CallLL ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

◆ CallO()

Cppyy::TCppObject_t Cppyy::CallO ( TCppMethod_t  method,
TCppObject_t  self,
void args,
TCppType_t  result_type 
)

Definition at line 519 of file Cppyy.cxx.

◆ CallR()

void * Cppyy::CallR ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

Definition at line 489 of file Cppyy.cxx.

◆ CallS()

Char_t * Cppyy::CallS ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

Definition at line 497 of file Cppyy.cxx.

◆ CallV()

void Cppyy::CallV ( TCppMethod_t  method,
TCppObject_t  self,
void args 
)

Definition at line 473 of file Cppyy.cxx.

◆ Construct()

Cppyy::TCppObject_t Cppyy::Construct ( TCppType_t  type)

Definition at line 286 of file Cppyy.cxx.

◆ Deallocate()

void Cppyy::Deallocate ( TCppType_t  type,
TCppObject_t  instance 
)

Definition at line 281 of file Cppyy.cxx.

◆ DeallocateFunctionArgs()

void Cppyy::DeallocateFunctionArgs ( void args)

Definition at line 543 of file Cppyy.cxx.

◆ Destruct()

void Cppyy::Destruct ( TCppType_t  type,
TCppObject_t  instance 
)

Definition at line 292 of file Cppyy.cxx.

◆ ExistsMethodTemplate()

bool Cppyy::ExistsMethodTemplate ( TCppScope_t  scope,
const std::string &  name 
)

Definition at line 843 of file Cppyy.cxx.

◆ GetActualClass()

Cppyy::TCppType_t Cppyy::GetActualClass ( TCppType_t  klass,
TCppObject_t  obj 
)

Definition at line 228 of file Cppyy.cxx.

◆ GetBaseName()

std::string Cppyy::GetBaseName ( TCppType_t  type,
TCppIndex_t  ibase 
)

Definition at line 616 of file Cppyy.cxx.

◆ GetBaseOffset()

ptrdiff_t Cppyy::GetBaseOffset ( TCppType_t  derived,
TCppType_t  base,
TCppObject_t  address,
int  direction,
bool  rerror = false 
)

Definition at line 644 of file Cppyy.cxx.

◆ GetDatamemberIndex()

Cppyy::TCppIndex_t Cppyy::GetDatamemberIndex ( TCppScope_t  scope,
const std::string &  name 
)

Definition at line 1013 of file Cppyy.cxx.

◆ GetDatamemberName()

std::string Cppyy::GetDatamemberName ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 950 of file Cppyy.cxx.

◆ GetDatamemberOffset()

ptrdiff_t Cppyy::GetDatamemberOffset ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 997 of file Cppyy.cxx.

◆ GetDatamemberType()

std::string Cppyy::GetDatamemberType ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 962 of file Cppyy.cxx.

◆ GetDimensionSize()

Int_t Cppyy::GetDimensionSize ( TCppScope_t  scope,
TCppIndex_t  idata,
int  dimension 
)

Definition at line 1087 of file Cppyy.cxx.

◆ GetEnum()

Cppyy::TCppEnum_t Cppyy::GetEnum ( TCppScope_t  scope,
const std::string &  enum_name 
)

Definition at line 1102 of file Cppyy.cxx.

◆ GetEnumDataName()

std::string Cppyy::GetEnumDataName ( TCppEnum_t  etype,
TCppIndex_t  idata 
)

Definition at line 1119 of file Cppyy.cxx.

◆ GetEnumDataValue()

long long Cppyy::GetEnumDataValue ( TCppEnum_t  etype,
TCppIndex_t  idata 
)

Definition at line 1124 of file Cppyy.cxx.

◆ GetFinalName()

std::string Cppyy::GetFinalName ( TCppType_t  type)

Definition at line 585 of file Cppyy.cxx.

◆ GetFunctionArgSizeof()

size_t Cppyy::GetFunctionArgSizeof ( )

Definition at line 548 of file Cppyy.cxx.

◆ GetFunctionArgTypeoffset()

size_t Cppyy::GetFunctionArgTypeoffset ( )

Definition at line 553 of file Cppyy.cxx.

◆ GetGlobalOperator()

Cppyy::TCppIndex_t Cppyy::GetGlobalOperator ( TCppType_t  scope,
TCppType_t  lc,
TCppScope_t  rc,
const std::string &  op 
)

Definition at line 892 of file Cppyy.cxx.

◆ GetMethod()

Cppyy::TCppMethod_t Cppyy::GetMethod ( TCppScope_t  scope,
TCppIndex_t  imeth 
)

Definition at line 751 of file Cppyy.cxx.

◆ GetMethodArgDefault()

std::string Cppyy::GetMethodArgDefault ( TCppMethod_t  method,
int  iarg 
)

Definition at line 815 of file Cppyy.cxx.

◆ GetMethodArgName()

std::string Cppyy::GetMethodArgName ( TCppMethod_t  method,
int  iarg 
)

Definition at line 795 of file Cppyy.cxx.

◆ GetMethodArgType()

std::string Cppyy::GetMethodArgType ( TCppMethod_t  method,
int  iarg 
)

Definition at line 805 of file Cppyy.cxx.

◆ GetMethodIndexAt()

Cppyy::TCppIndex_t Cppyy::GetMethodIndexAt ( TCppScope_t  scope,
TCppIndex_t  imeth 
)

Definition at line 709 of file Cppyy.cxx.

◆ GetMethodName()

std::string Cppyy::GetMethodName ( TCppMethod_t  method)

Definition at line 757 of file Cppyy.cxx.

◆ GetMethodNumArgs()

Cppyy::TCppIndex_t Cppyy::GetMethodNumArgs ( TCppMethod_t  method)

Definition at line 779 of file Cppyy.cxx.

◆ GetMethodNumTemplateArgs()

Cppyy::TCppIndex_t Cppyy::GetMethodNumTemplateArgs ( TCppScope_t  scope,
TCppIndex_t  imeth 
)

Definition at line 880 of file Cppyy.cxx.

◆ GetMethodReqArgs()

Cppyy::TCppIndex_t Cppyy::GetMethodReqArgs ( TCppMethod_t  method)

Definition at line 786 of file Cppyy.cxx.

◆ GetMethodResultType()

std::string Cppyy::GetMethodResultType ( TCppMethod_t  method)

Definition at line 768 of file Cppyy.cxx.

◆ GetMethodsFromName()

std::vector< Cppyy::TCppMethod_t > Cppyy::GetMethodsFromName ( TCppScope_t  scope,
const std::string &  name,
bool  alsoInBases = false 
)

Definition at line 714 of file Cppyy.cxx.

◆ GetMethodSignature()

std::string Cppyy::GetMethodSignature ( TCppScope_t  scope,
TCppIndex_t  imeth 
)

Definition at line 828 of file Cppyy.cxx.

◆ GetMethodTemplate()

Cppyy::TCppMethod_t Cppyy::GetMethodTemplate ( TCppScope_t  scope,
const std::string &  name,
const std::string &  proto 
)

Definition at line 856 of file Cppyy.cxx.

◆ GetMethodTemplateArgName()

std::string Cppyy::GetMethodTemplateArgName ( TCppScope_t  scope,
TCppIndex_t  imeth,
TCppIndex_t  iarg 
)

Definition at line 886 of file Cppyy.cxx.

◆ GetMethPtrGetter()

Cppyy::TCppMethPtrGetter_t Cppyy::GetMethPtrGetter ( TCppScope_t  scope,
TCppIndex_t  imeth 
)

Definition at line 530 of file Cppyy.cxx.

◆ GetName()

std::string Cppyy::GetName ( const std::string &  scope_name)

Definition at line 150 of file Cppyy.cxx.

◆ GetNumBases()

Cppyy::TCppIndex_t Cppyy::GetNumBases ( TCppType_t  type)

Definition at line 607 of file Cppyy.cxx.

◆ GetNumDatamembers()

Cppyy::TCppIndex_t Cppyy::GetNumDatamembers ( TCppScope_t  scope)

Definition at line 927 of file Cppyy.cxx.

◆ GetNumEnumData()

Cppyy::TCppIndex_t Cppyy::GetNumEnumData ( TCppEnum_t  etype)

Definition at line 1114 of file Cppyy.cxx.

◆ GetNumMethods()

Cppyy::TCppIndex_t Cppyy::GetNumMethods ( TCppScope_t  scope)

Definition at line 683 of file Cppyy.cxx.

◆ GetNumScopes()

Cppyy::TCppIndex_t Cppyy::GetNumScopes ( TCppScope_t  parent)

Definition at line 130 of file Cppyy.cxx.

◆ GetScope()

Cppyy::TCppScope_t Cppyy::GetScope ( const std::string &  scope_name)

Definition at line 197 of file Cppyy.cxx.

◆ GetScopedFinalName()

std::string Cppyy::GetScopedFinalName ( TCppType_t  type)

Definition at line 594 of file Cppyy.cxx.

◆ GetScopeName()

std::string Cppyy::GetScopeName ( TCppScope_t  parent,
TCppIndex_t  iscope 
)

Definition at line 138 of file Cppyy.cxx.

◆ GetTemplate()

Cppyy::TCppType_t Cppyy::GetTemplate ( const std::string &  template_name)

Definition at line 223 of file Cppyy.cxx.

◆ HasComplexHierarchy()

Bool_t Cppyy::HasComplexHierarchy ( TCppType_t  type)

Definition at line 601 of file Cppyy.cxx.

◆ IsAbstract()

Bool_t Cppyy::IsAbstract ( TCppType_t  type)

Definition at line 571 of file Cppyy.cxx.

◆ IsBuiltin()

Bool_t Cppyy::IsBuiltin ( const std::string &  type_name)

Definition at line 246 of file Cppyy.cxx.

◆ IsComplete()

Bool_t Cppyy::IsComplete ( const std::string &  type_name)

Definition at line 253 of file Cppyy.cxx.

◆ IsConstData()

Bool_t Cppyy::IsConstData ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 1059 of file Cppyy.cxx.

◆ IsConstMethod()

Bool_t Cppyy::IsConstMethod ( TCppMethod_t  method)

Definition at line 833 of file Cppyy.cxx.

◆ IsConstructor()

Bool_t Cppyy::IsConstructor ( TCppMethod_t  method)

Definition at line 899 of file Cppyy.cxx.

◆ IsEnum()

Bool_t Cppyy::IsEnum ( const std::string &  type_name)

Definition at line 579 of file Cppyy.cxx.

◆ IsEnumData()

Bool_t Cppyy::IsEnumData ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 1073 of file Cppyy.cxx.

◆ IsMethodTemplate()

Bool_t Cppyy::IsMethodTemplate ( TCppMethod_t  method)

Definition at line 870 of file Cppyy.cxx.

◆ IsNamespace()

Bool_t Cppyy::IsNamespace ( TCppScope_t  scope)

Definition at line 560 of file Cppyy.cxx.

◆ IsPublicData()

Bool_t Cppyy::IsPublicData ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 1037 of file Cppyy.cxx.

◆ IsPublicMethod()

Bool_t Cppyy::IsPublicMethod ( TCppMethod_t  method)

Definition at line 908 of file Cppyy.cxx.

◆ IsSmartPtr()

Bool_t Cppyy::IsSmartPtr ( const std::string &  type_name)

Definition at line 635 of file Cppyy.cxx.

◆ IsStaticData()

Bool_t Cppyy::IsStaticData ( TCppScope_t  scope,
TCppIndex_t  idata 
)

Definition at line 1048 of file Cppyy.cxx.

◆ IsStaticMethod()

Bool_t Cppyy::IsStaticMethod ( TCppMethod_t  method)

Definition at line 917 of file Cppyy.cxx.

◆ IsSubtype()

Bool_t Cppyy::IsSubtype ( TCppType_t  derived,
TCppType_t  base 
)

Definition at line 622 of file Cppyy.cxx.

◆ ResolveEnum() [1/2]

std::string Cppyy::ResolveEnum ( const std::string &  enum_type)

Definition at line 192 of file Cppyy.cxx.

◆ ResolveEnum() [2/2]

std::string Cppyy::ResolveEnum ( const TEnum en)

Definition at line 181 of file Cppyy.cxx.

◆ ResolveName()

std::string Cppyy::ResolveName ( const std::string &  cppitem_name)

Definition at line 171 of file Cppyy.cxx.

◆ SizeOf()

size_t Cppyy::SizeOf ( TCppType_t  klass)

Definition at line 239 of file Cppyy.cxx.

Variable Documentation

◆ gGlobalScope

Cppyy::TCppScope_t Cppyy::gGlobalScope = GLOBAL_HANDLE
extern

Definition at line 64 of file Cppyy.cxx.