Logo ROOT  
Reference Guide
CPPConstructor.h
Go to the documentation of this file.
1#ifndef CPYCPPYY_CPPCONSTRUCTOR_H
2#define CPYCPPYY_CPPCONSTRUCTOR_H
3
4// Bindings
5#include "CPPMethod.h"
6
7
8namespace CPyCppyy {
9
10class CPPConstructor : public CPPMethod {
11public:
13
14public:
15 virtual PyObject* GetDocString();
16 virtual PyCallable* Clone() { return new CPPConstructor(*this); }
17
18public:
19 virtual PyObject* Call(
20 CPPInstance*& self, PyObject* args, PyObject* kwds, CallContext* ctxt = nullptr);
21
22protected:
23 virtual bool InitExecutor_(Executor*&, CallContext* ctxt = nullptr);
24};
25
26
27// specializations of prohibiting constructors
29public:
30 using CPPConstructor::CPPConstructor;
31
32public:
33 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
34};
35
37public:
38 using CPPConstructor::CPPConstructor;
39
40public:
41 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
42};
43
45public:
46 using CPPConstructor::CPPConstructor;
47
48public:
49 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
50};
51
52} // namespace CPyCppyy
53
54#endif // !CPYCPPYY_CPPCONSTRUCTOR_H
_object PyObject
Definition: PyMethodBase.h:41
virtual PyObject * Call(CPPInstance *&, PyObject *, PyObject *, CallContext *=nullptr)
virtual PyObject * GetDocString()
virtual bool InitExecutor_(Executor *&, CallContext *ctxt=nullptr)
virtual PyCallable * Clone()
virtual PyObject * Call(CPPInstance *&self, PyObject *args, PyObject *kwds, CallContext *ctxt=nullptr)
virtual PyObject * Call(CPPInstance *&, PyObject *, PyObject *, CallContext *=nullptr)
CPPMethod(Cppyy::TCppScope_t scope, Cppyy::TCppMethod_t method)
Definition: CPPMethod.cxx:290
virtual PyObject * Call(CPPInstance *&, PyObject *, PyObject *, CallContext *=nullptr)