Logo ROOT  
Reference Guide
ProxyWrappers.h
Go to the documentation of this file.
1 #ifndef CPYCPPYY_PROXYWRAPPERS_H
2 #define CPYCPPYY_PROXYWRAPPERS_H
3 
4 // Standard
5 #include <string>
6 
7 
8 namespace CPyCppyy {
9 
10 // construct a Python shadow class for the named C++ class
15  const std::string& scope_name, PyObject* parent = nullptr);
16 
17 // C++ exceptions form a special case b/c they have to derive from BaseException
19 
20 // bind a C++ object into a Python proxy object (flags are CPPInstance::Default)
22  Cppyy::TCppType_t klass, const unsigned flags = 0);
24  Cppyy::TCppType_t klass, const unsigned flags = 0);
26  Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t* dims);
27 
28 } // namespace CPyCppyy
29 
30 #endif // !CPYCPPYY_PROXYWRAPPERS_H
TCppScope_t TCppType_t
Definition: cpp_cppyy.h:19
#define pyname
Definition: TMCParticle.cxx:19
PyObject * BindCppObjectArray(Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t *dims)
size_t TCppScope_t
Definition: cpp_cppyy.h:18
PyObject * GetScopeProxy(Cppyy::TCppScope_t)
PyObject * CreateScopeProxy(Cppyy::TCppScope_t)
PyObject * BindCppObjectNoCast(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
_object PyObject
Definition: PyMethodBase.h:41
int Py_ssize_t
Definition: CPyCppyy.h:228
PyObject * BindCppObject(Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, const unsigned flags=0)
PyObject * CreateExcScopeProxy(PyObject *pyscope, PyObject *pyname, PyObject *parent)
void * TCppObject_t
Definition: cpp_cppyy.h:21