Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ProxyWrappers.h
Go to the documentation of this file.
1#ifndef CPYCPPYY_PROXYWRAPPERS_H
2#define CPYCPPYY_PROXYWRAPPERS_H
3
4// Bindings
5#include "Dimensions.h"
6
7// Standard
8#include <string>
9
10
11namespace CPyCppyy {
12
13// construct a Python shadow class for the named C++ class
15PyObject* CreateScopeProxy(Cppyy::TCppScope_t, const unsigned flags = 0);
18 const std::string& scope_name, PyObject* parent = nullptr, const unsigned flags = 0);
19
20// C++ exceptions form a special case b/c they have to derive from BaseException
21PyObject* CreateExcScopeProxy(PyObject* pyscope, PyObject* pyname, PyObject* parent);
22
23// bind a C++ object into a Python proxy object (flags are CPPInstance::Default)
25 Cppyy::TCppType_t klass, const unsigned flags = 0);
27 Cppyy::TCppType_t klass, const unsigned flags = 0);
29 Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, cdims_t dims);
30
31} // namespace CPyCppyy
32
33#endif // !CPYCPPYY_PROXYWRAPPERS_H
_object PyObject
PyObject * GetScopeProxy(Cppyy::TCppScope_t)
PyObject * CreateScopeProxy(Cppyy::TCppScope_t, const unsigned flags=0)
PyObject * BindCppObjectNoCast(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
const dims_t & cdims_t
Definition API.h:104
PyObject * CreateExcScopeProxy(PyObject *pyscope, PyObject *pyname, PyObject *parent)
PyObject * BindCppObjectArray(Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, cdims_t dims)
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
void * TCppObject_t
Definition cpp_cppyy.h:21
TCppScope_t TCppType_t
Definition cpp_cppyy.h:19
size_t TCppScope_t
Definition cpp_cppyy.h:18