Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ProxyWrappers.h
Go to the documentation of this file.
1#ifndef CPYRT_PROXYWRAPPERS_H
2#define CPYRT_PROXYWRAPPERS_H
3
4// Bindings
5#include "Dimensions.h"
6
7// Standard
8#include <string>
9
10namespace cppjit::cpyrt {
11
12// construct a Python shadow class for the named C++ class
15PyObject* CreateScopeProxy(const std::string& scope_name,
16 PyObject* parent = nullptr,
17 const unsigned flags = 0);
18
20 PyObject* parent = nullptr,
21 const unsigned flags = 0);
22// C++ exceptions form a special case b/c they have to derive from BaseException
24 PyObject* parent);
25
26// bind a C++ object into a Python proxy object (flags are CPPInstance::Default)
29 const unsigned flags = 0);
31 interop::TCppScope_t klass, const unsigned flags = 0);
33 interop::TCppScope_t klass, cdims_t dims);
34
35} // namespace cppjit::cpyrt
36
37#endif // !CPYRT_PROXYWRAPPERS_H
_object PyObject
PyObject * CreateExcScopeProxy(PyObject *pyscope, PyObject *pyname, PyObject *parent)
PyObject * GetScopeProxy(interop::TCppScope_t)
PyObject * BindCppObject(interop::TCppObject_t object, interop::TCppScope_t klass, const unsigned flags=0)
PyObject * BindCppObjectArray(interop::TCppObject_t address, interop::TCppScope_t klass, cdims_t dims)
PyObject * CreateScopeProxy(PyObject *, PyObject *args)
PyObject * BindCppObjectNoCast(interop::TCppObject_t object, interop::TCppScope_t klass, const unsigned flags=0)
const dims_t & cdims_t
Definition API.h:114
Cpp::ObjectRef TCppObject_t
Definition API.h:43
Cpp::DeclRef TCppScope_t
Definition API.h:41