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 "CPyCppyy/DispatchPtr.h"
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <iostream>
#include <sstream>
#include <utility>
#include <vector>

Namespaces

namespace  CPyCppyy

Macros

#define CPYCPPYY_GET_DICT_LOOKUP(mp)
#define CPYCPPYY_INTERNAL   1
#define CPYCPPYY_ORGDICT_LOOKUP(mp, key, hash, value_addr, hashpos)
#define DEFINE_CALL_POLICY_TOGGLE(name, flagname)

Functions

static void default_dealloc (PyObject *)
static PyObjectdefault_repr (PyObject *)
PyObjectCPyCppyy::Init ()
CPYCPPYY_EXTERN void * CPyCppyy::Instance_AsVoidPtr (PyObject *pyobject)
CPYCPPYY_EXTERN PyObjectCPyCppyy::Instance_FromVoidPtr (void *addr, const std::string &classname, bool python_owns=false)
static void nullptr_dealloc (PyObject *)
static int nullptr_nonzero (PyObject *)
static PyObjectnullptr_repr (PyObject *)
std::map< std::string, std::vector< PyObject * > > & CPyCppyy::pythonizations ()

Variables

std::ostringstream CPyCppyy::gCapturedError
static PyMethodDef gCPyCppyyMethods []
dict_lookup_func CPyCppyy::gDictLookupOrg = nullptr
std::streambuf * CPyCppyy::gOldErrorBuffer = nullptr
std::set< Cppyy::TCppType_tCPyCppyy::gPinnedTypes
PyObjectCPyCppyy::gPyTypeMap = nullptr
static PyNumberMethods nullptr_as_number
static PyTypeObject PyDefault_t_Type
static PyTypeObject PyNullPtr_t_Type

Macro Definition Documentation

◆ CPYCPPYY_GET_DICT_LOOKUP

#define CPYCPPYY_GET_DICT_LOOKUP ( mp)
Value:
((dict_lookup_func&)mp->ma_lookup)
PyDictEntry *(* dict_lookup_func)(PyDictObject *, PyObject *, long)
Definition CPyCppyy.h:44

Definition at line 84 of file CPyCppyyModule.cxx.

◆ CPYCPPYY_INTERNAL

#define CPYCPPYY_INTERNAL   1

Definition at line 19 of file CPyCppyyModule.cxx.

◆ CPYCPPYY_ORGDICT_LOOKUP

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

Definition at line 327 of file CPyCppyyModule.cxx.

◆ DEFINE_CALL_POLICY_TOGGLE

#define DEFINE_CALL_POLICY_TOGGLE ( name,
flagname )
Value:
static PyObject* name(PyObject*, PyObject* args) \
{ \
PyObject* enabled = 0; \
if (!PyArg_ParseTuple(args, const_cast<char*>("O"), &enabled)) \
return nullptr; \
\
if (CallContext::SetGlobalPolicy(CallContext::flagname, PyObject_IsTrue(enabled))) { \
} \
\
}
#define Py_RETURN_TRUE
Definition CPyCppyy.h:272
#define Py_RETURN_FALSE
Definition CPyCppyy.h:276
_object PyObject
char name[80]
Definition TGX11.cxx:148
static bool SetGlobalPolicy(ECallFlags e, bool enabled)

Definition at line 906 of file CPyCppyyModule.cxx.

Function Documentation

◆ default_dealloc()

void default_dealloc ( PyObject * )
static

Definition at line 188 of file CPyCppyyModule.cxx.

◆ default_repr()

PyObject * default_repr ( PyObject * )
static

Definition at line 183 of file CPyCppyyModule.cxx.

◆ nullptr_dealloc()

void nullptr_dealloc ( PyObject * )
static

Definition at line 97 of file CPyCppyyModule.cxx.

◆ nullptr_nonzero()

int nullptr_nonzero ( PyObject * )
static

Definition at line 102 of file CPyCppyyModule.cxx.

◆ nullptr_repr()

PyObject * nullptr_repr ( PyObject * )
static

Definition at line 92 of file CPyCppyyModule.cxx.

Variable Documentation

◆ gCPyCppyyMethods

PyMethodDef gCPyCppyyMethods[]
static

Definition at line 978 of file CPyCppyyModule.cxx.

◆ nullptr_as_number

PyNumberMethods nullptr_as_number
static

Definition at line 107 of file CPyCppyyModule.cxx.

◆ PyDefault_t_Type

PyTypeObject PyDefault_t_Type
static

Definition at line 193 of file CPyCppyyModule.cxx.

◆ PyNullPtr_t_Type

PyTypeObject PyNullPtr_t_Type
static

Definition at line 145 of file CPyCppyyModule.cxx.