Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
CPyCppyyModule.cxx File Reference
#include "CPyCppyy.h"
#include "CallContext.h"
#include "Converters.h"
#include "CPPDataMember.h"
#include "CPPExcInstance.h"
#include "CPPInstance.h"
#include "CPPOverload.h"
#include "CPPScope.h"
#include "CustomPyTypes.h"
#include "LowLevelViews.h"
#include "MemoryRegulator.h"
#include "ProxyWrappers.h"
#include "PyStrings.h"
#include "TemplateProxy.h"
#include "TupleOfInstances.h"
#include "Utility.h"
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <utility>
#include <vector>
Include dependency graph for CPyCppyyModule.cxx:

Namespaces

namespace  CPyCppyy
 Set of helper functions that are invoked from the pythonizors, on the Python side.
 

Macros

#define CONCAT(a, b, c, d)   a##b##c##d
 
#define CPYCPPYY_GET_DICT_LOOKUP(mp)    ((dict_lookup_func&)mp->ma_lookup)
 
#define CPYCPPYY_INIT_ERROR   return
 
#define CPYCPPYY_ORGDICT_LOOKUP(mp, key, hash, value_addr, hashpos)    OrgDictLookup(mp, key, hash)
 
#define LIBCPPYY_INIT_FUNCTION(a, b, c, d)   CONCAT(a, b, c, d)
 
#define LIBCPPYY_NAME   "libcppyy" QuoteMacro(PY_MAJOR_VERSION) "_" QuoteMacro(PY_MINOR_VERSION)
 
#define QuoteIdent(ident)   #ident
 
#define QuoteMacro(macro)   QuoteIdent(macro)
 

Functions

 LIBCPPYY_INIT_FUNCTION (extern "C" void initlibcppyy, PY_MAJOR_VERSION, _, PY_MINOR_VERSION)()
 
static void nullptr_dealloc (PyObject *)
 
static int nullptr_nonzero (PyObject *)
 
static PyObjectnullptr_repr (PyObject *)
 

Variables

static PyMethodDef gCPyCppyyMethods []
 
std::set< Cppyy::TCppType_tCPyCppyy::gPinnedTypes
 
std::map< std::string, std::vector< PyObject * > > CPyCppyy::gPythonizations
 
PyObjectCPyCppyy::gPyTypeMap = nullptr
 
static PyNumberMethods nullptr_as_number
 
static PyTypeObject PyNullPtr_t_Type
 

Macro Definition Documentation

◆ CONCAT

#define CONCAT (   a,
  b,
  c,
  d 
)    a##b##c##d

Definition at line 763 of file CPyCppyyModule.cxx.

◆ CPYCPPYY_GET_DICT_LOOKUP

#define CPYCPPYY_GET_DICT_LOOKUP (   mp)     ((dict_lookup_func&)mp->ma_lookup)

Definition at line 63 of file CPyCppyyModule.cxx.

◆ CPYCPPYY_INIT_ERROR

#define CPYCPPYY_INIT_ERROR   return

Definition at line 802 of file CPyCppyyModule.cxx.

◆ CPYCPPYY_ORGDICT_LOOKUP

#define CPYCPPYY_ORGDICT_LOOKUP (   mp,
  key,
  hash,
  value_addr,
  hashpos 
)     OrgDictLookup(mp, key, hash)

Definition at line 231 of file CPyCppyyModule.cxx.

◆ LIBCPPYY_INIT_FUNCTION

#define LIBCPPYY_INIT_FUNCTION (   a,
  b,
  c,
  d 
)    CONCAT(a, b, c, d)

Definition at line 764 of file CPyCppyyModule.cxx.

◆ LIBCPPYY_NAME

#define LIBCPPYY_NAME   "libcppyy" QuoteMacro(PY_MAJOR_VERSION) "_" QuoteMacro(PY_MINOR_VERSION)

Definition at line 761 of file CPyCppyyModule.cxx.

◆ QuoteIdent

#define QuoteIdent (   ident)    #ident

Definition at line 759 of file CPyCppyyModule.cxx.

◆ QuoteMacro

#define QuoteMacro (   macro)    QuoteIdent(macro)

Definition at line 760 of file CPyCppyyModule.cxx.

Function Documentation

◆ LIBCPPYY_INIT_FUNCTION()

LIBCPPYY_INIT_FUNCTION ( extern "C" void  initlibcppyy,
PY_MAJOR_VERSION  ,
_  ,
PY_MINOR_VERSION   
)

Definition at line 803 of file CPyCppyyModule.cxx.

◆ nullptr_dealloc()

static void nullptr_dealloc ( PyObject )
static

Definition at line 74 of file CPyCppyyModule.cxx.

◆ nullptr_nonzero()

static int nullptr_nonzero ( PyObject )
static

Definition at line 79 of file CPyCppyyModule.cxx.

◆ nullptr_repr()

static PyObject * nullptr_repr ( PyObject )
static

Definition at line 69 of file CPyCppyyModule.cxx.

Variable Documentation

◆ gCPyCppyyMethods

PyMethodDef gCPyCppyyMethods[]
static

Definition at line 719 of file CPyCppyyModule.cxx.

◆ nullptr_as_number

PyNumberMethods nullptr_as_number
static

Definition at line 84 of file CPyCppyyModule.cxx.

◆ PyNullPtr_t_Type

PyTypeObject PyNullPtr_t_Type
static
Initial value:
= {
PyVarObject_HEAD_INIT(&PyType_Type, 0)
"nullptr_t",
sizeof(PyObject),
0,
0, 0, 0, 0,
0, 0,
(hashfunc)_Py_HashPointer,
0, 0, 0, 0, 0, Py_TPFLAGS_DEFAULT, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}
static PyObject * nullptr_repr(PyObject *)
static PyNumberMethods nullptr_as_number
static void nullptr_dealloc(PyObject *)
#define PyVarObject_HEAD_INIT(type, size)
Definition CPyCppyy.h:215
_object PyObject

Definition at line 122 of file CPyCppyyModule.cxx.