Logo ROOT   6.18/05
Reference Guide
Macros | Typedefs | Functions | Variables
Cppyy.cxx File Reference
#include "PyROOT.h"
#include "Cppyy.h"
#include "TCallContext.h"
#include "TBaseClass.h"
#include "TClass.h"
#include "TClassRef.h"
#include "TClassTable.h"
#include "TClassEdit.h"
#include "TCollection.h"
#include "TDataMember.h"
#include "TDataType.h"
#include "TEnumConstant.h"
#include "TError.h"
#include "TFunction.h"
#include "TGlobal.h"
#include "TInterpreter.h"
#include "TList.h"
#include "TMethod.h"
#include "TMethodArg.h"
#include "TROOT.h"
#include <assert.h>
#include <map>
#include <set>
#include <sstream>
#include <iostream>
Include dependency graph for Cppyy.cxx:

Macros

#define CPPYY_IMP_CALL(typecode, rtype)
 

Typedefs

typedef std::vector< TClassRefClassRefs_t
 
typedef std::vector< TFunctionGlobalFuncs_t
 
typedef std::vector< TGlobal * > GlobalVars_t
 
typedef std::map< Cppyy::TCppMethod_t, CallFunc_t * > Method2CallFunc_t
 
typedef std::map< std::string, ClassRefs_t::size_type > Name2ClassRefIndex_t
 
typedef PyROOT::TParameter TParameter
 

Functions

template<typename T >
static T CallT (Cppyy::TCppMethod_t method, Cppyy::TCppObject_t self, void *args)
 
static void copy_args (void *args_, void **vargs)
 
static Cppyy::TCppScope_t declaring_scope (Cppyy::TCppMethod_t method)
 
Bool_t FastCall (Cppyy::TCppMethod_t method, void *args_, void *self, void *result)
 
static ClassRefs_t g_classrefs (1)
 
static CallFunc_t * GetCallFunc (Cppyy::TCppMethod_t method)
 
static ClassInfo_t * GetGlobalNamespaceInfo ()
 
static TClassReftype_from_handle (Cppyy::TCppScope_t scope)
 
static TFunctiontype_get_method (Cppyy::TCppType_t klass, Cppyy::TCppIndex_t idx)
 

Variables

static GlobalFuncs_t g_globalfuncs
 
static GlobalVars_t g_globalvars
 
static Method2CallFunc_t g_method2callfunc
 
static Name2ClassRefIndex_t g_name2classrefidx
 
static const ClassRefs_t::size_type GLOBAL_HANDLE = 1
 
static std::set< std::string > gSmartPtrTypes
 
const int SMALL_ARGS_N = 8
 

Macro Definition Documentation

◆ CPPYY_IMP_CALL

#define CPPYY_IMP_CALL (   typecode,
  rtype 
)
Value:
rtype Cppyy::Call##typecode( TCppMethod_t method, TCppObject_t self, void* args )\
{ \
return CallT< rtype >( method, self, args ); \
}
ptrdiff_t TCppMethod_t
Definition: Cppyy.h:18
void * TCppObject_t
Definition: Cppyy.h:17

Definition at line 463 of file Cppyy.cxx.

Typedef Documentation

◆ ClassRefs_t

typedef std::vector< TClassRef > ClassRefs_t

Definition at line 47 of file Cppyy.cxx.

◆ GlobalFuncs_t

typedef std::vector< TFunction > GlobalFuncs_t

Definition at line 57 of file Cppyy.cxx.

◆ GlobalVars_t

typedef std::vector< TGlobal* > GlobalVars_t

Definition at line 60 of file Cppyy.cxx.

◆ Method2CallFunc_t

typedef std::map< Cppyy::TCppMethod_t, CallFunc_t* > Method2CallFunc_t

Definition at line 54 of file Cppyy.cxx.

◆ Name2ClassRefIndex_t

typedef std::map< std::string, ClassRefs_t::size_type > Name2ClassRefIndex_t

Definition at line 51 of file Cppyy.cxx.

◆ TParameter

Definition at line 37 of file Cppyy.cxx.

Function Documentation

◆ CallT()

template<typename T >
static T CallT ( Cppyy::TCppMethod_t  method,
Cppyy::TCppObject_t  self,
void args 
)
inlinestatic

Definition at line 455 of file Cppyy.cxx.

◆ copy_args()

static void copy_args ( void args_,
void **  vargs 
)
inlinestatic

Definition at line 375 of file Cppyy.cxx.

◆ declaring_scope()

static Cppyy::TCppScope_t declaring_scope ( Cppyy::TCppMethod_t  method)
inlinestatic

Definition at line 117 of file Cppyy.cxx.

◆ FastCall()

Bool_t FastCall ( Cppyy::TCppMethod_t  method,
void args_,
void self,
void result 
)

Definition at line 410 of file Cppyy.cxx.

◆ g_classrefs()

static ClassRefs_t g_classrefs ( )
static

◆ GetCallFunc()

static CallFunc_t * GetCallFunc ( Cppyy::TCppMethod_t  method)
static

Definition at line 302 of file Cppyy.cxx.

◆ GetGlobalNamespaceInfo()

static ClassInfo_t * GetGlobalNamespaceInfo ( )
inlinestatic

Definition at line 296 of file Cppyy.cxx.

◆ type_from_handle()

static TClassRef & type_from_handle ( Cppyy::TCppScope_t  scope)
inlinestatic

Definition at line 99 of file Cppyy.cxx.

◆ type_get_method()

static TFunction * type_get_method ( Cppyy::TCppType_t  klass,
Cppyy::TCppIndex_t  idx 
)
inlinestatic

Definition at line 107 of file Cppyy.cxx.

Variable Documentation

◆ g_globalfuncs

GlobalFuncs_t g_globalfuncs
static

Definition at line 58 of file Cppyy.cxx.

◆ g_globalvars

GlobalVars_t g_globalvars
static

Definition at line 61 of file Cppyy.cxx.

◆ g_method2callfunc

Method2CallFunc_t g_method2callfunc
static

Definition at line 55 of file Cppyy.cxx.

◆ g_name2classrefidx

Name2ClassRefIndex_t g_name2classrefidx
static

Definition at line 52 of file Cppyy.cxx.

◆ GLOBAL_HANDLE

const ClassRefs_t::size_type GLOBAL_HANDLE = 1
static

Definition at line 49 of file Cppyy.cxx.

◆ gSmartPtrTypes

std::set< std::string > gSmartPtrTypes
static
Initial value:
=
{ "auto_ptr", "shared_ptr", "weak_ptr", "unique_ptr" }

Definition at line 67 of file Cppyy.cxx.

◆ SMALL_ARGS_N

const int SMALL_ARGS_N = 8

Definition at line 43 of file Cppyy.cxx.