ROOT  6.06/09
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 "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:

Go to the source code of this file.

Macros

#define CPPYY_IMP_CALL(typecode, rtype)
 

Typedefs

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

Functions

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

Variables

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

Macro Definition Documentation

#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:15
return
Definition: TBase64.cxx:62
void * TCppObject_t
Definition: Cppyy.h:14

Definition at line 420 of file Cppyy.cxx.

Typedef Documentation

typedef std::vector< TClassRef > ClassRefs_t

Definition at line 41 of file Cppyy.cxx.

typedef std::vector< TFunction > GlobalFuncs_t

Definition at line 51 of file Cppyy.cxx.

typedef std::vector< TGlobal* > GlobalVars_t

Definition at line 54 of file Cppyy.cxx.

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

Definition at line 48 of file Cppyy.cxx.

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

Definition at line 45 of file Cppyy.cxx.

Definition at line 32 of file Cppyy.cxx.

Function Documentation

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

Definition at line 412 of file Cppyy.cxx.

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

Definition at line 332 of file Cppyy.cxx.

Referenced by FastCall().

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

Definition at line 111 of file Cppyy.cxx.

Referenced by GetCallFunc().

Bool_t FastCall ( Cppyy::TCppMethod_t  method,
void args_,
void self,
void result 
)
static ClassRefs_t g_classrefs ( )
static
static CallFunc_t* GetCallFunc ( Cppyy::TCppMethod_t  method)
static

Definition at line 259 of file Cppyy.cxx.

Referenced by FastCall().

static ClassInfo_t* GetGlobalNamespaceInfo ( )
inlinestatic

Definition at line 253 of file Cppyy.cxx.

Referenced by GetCallFunc().

static TClassRef& type_from_handle ( Cppyy::TCppScope_t  scope)
inlinestatic
static TFunction* type_get_method ( Cppyy::TCppType_t  klass,
Cppyy::TCppIndex_t  idx 
)
inlinestatic

Definition at line 101 of file Cppyy.cxx.

Referenced by Cppyy::GetMethod().

Variable Documentation

GlobalFuncs_t g_globalfuncs
static

Definition at line 52 of file Cppyy.cxx.

Referenced by Cppyy::GetMethodsFromName().

GlobalVars_t g_globalvars
static
Method2CallFunc_t g_method2callfunc
static

Definition at line 49 of file Cppyy.cxx.

Referenced by GetCallFunc().

Name2ClassRefIndex_t g_name2classrefidx
static

Definition at line 46 of file Cppyy.cxx.

const ClassRefs_t::size_type GLOBAL_HANDLE = 1
static
std::set< std::string > gSmartPtrTypes
static
Initial value:
=
{ "auto_ptr", "shared_ptr", "weak_ptr", "unique_ptr" }

Definition at line 61 of file Cppyy.cxx.

const int SMALL_ARGS_N = 8

Definition at line 37 of file Cppyy.cxx.

Referenced by FastCall().