Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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();
18
19 virtual PyCallable* Clone() { return new CPPConstructor(*this); }
20
21public:
22 virtual PyObject* Call(
23 CPPInstance*& self, PyObject* args, PyObject* kwds, CallContext* ctxt = nullptr);
24
25protected:
26 virtual bool InitExecutor_(Executor*&, CallContext* ctxt = nullptr);
27};
28
29
30// specializations of prohibiting constructors
32public:
33 using CPPConstructor::CPPConstructor;
34
35public:
36 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
37};
38
40public:
41 using CPPConstructor::CPPConstructor;
42
43public:
44 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
45};
46
48public:
49 using CPPConstructor::CPPConstructor;
50
51public:
52 virtual PyObject* Call(CPPInstance*&, PyObject*, PyObject*, CallContext* = nullptr);
53};
54
55} // namespace CPyCppyy
56
57#endif // !CPYCPPYY_CPPCONSTRUCTOR_H
_object PyObject
virtual PyObject * Call(CPPInstance *&, PyObject *, PyObject *, CallContext *=nullptr)
virtual PyObject * GetDocString()
virtual bool InitExecutor_(Executor *&, CallContext *ctxt=nullptr)
virtual PyObject * Reflex(Cppyy::Reflex::RequestId_t, Cppyy::Reflex::FormatId_t=Cppyy::Reflex::OPTIMAL)
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)
virtual PyObject * Call(CPPInstance *&, PyObject *, PyObject *, CallContext *=nullptr)
Set of helper functions that are invoked from the pythonizors, on the Python side.
const FormatId_t OPTIMAL
Definition Reflex.h:21