File indexing completed on 2025-09-15 09:13:09
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef ROOT_TPyArg
0013 #define ROOT_TPyArg
0014
0015
0016 #include "Rtypes.h"
0017
0018
0019 struct _object;
0020 typedef _object PyObject;
0021
0022
0023 #include <vector>
0024
0025
0026 class TPyArg {
0027 public:
0028
0029 TPyArg(PyObject *);
0030 TPyArg(Int_t);
0031 TPyArg(Long_t);
0032 TPyArg(Double_t);
0033 TPyArg(const char *);
0034
0035 TPyArg(const TPyArg &);
0036 TPyArg &operator=(const TPyArg &);
0037 virtual ~TPyArg();
0038
0039
0040 operator PyObject *() const;
0041
0042
0043 static void CallConstructor(PyObject *&pyself, PyObject *pyclass, const std::vector<TPyArg> &args);
0044 static void CallConstructor(PyObject *&pyself, PyObject *pyclass);
0045 static PyObject *CallMethod(PyObject *pymeth, const std::vector<TPyArg> &args);
0046 static void CallDestructor(PyObject *&pyself, PyObject *pymeth, const std::vector<TPyArg> &args);
0047 static void CallDestructor(PyObject *&pyself);
0048
0049 ClassDef(TPyArg, 1)
0050
0051 private:
0052 mutable PyObject *fPyObject;
0053 };
0054
0055 #endif