14#include "TPyClassGenerator.h"
30 PyGILState_STATE m_GILState;
90#if PY_VERSION_HEX < 0x30d00f0
110 nsCode <<
" std::vector<TPyArg> v; v.reserve(" <<
nVars <<
");\n";
117 nsCode <<
" return TPyReturn(TPyArg::CallMethod((PyObject*)" << std::showbase << (
uintptr_t)
attr <<
", v)); }\n";
140 std::string::size_type pos =
clName.rfind(
'.');
142 if (pos == std::string::npos)
186 proxyCode <<
"class " <<
clName <<
" {\nprivate:\n PyObject* fPyObject;\npublic:\n";
199 if (
mtName ==
"__del__") {
201 proxyCode <<
" ~" <<
clName <<
"() { TPyArg::CallDestructor(fPyObject); }\n";
210#if PY_VERSION_HEX < 0x03000000
226#if PY_VERSION_HEX < 0x03000000
246 proxyCode <<
" v.push_back(fPyObject);\n";
254 proxyCode <<
" return TPyReturn(TPyArg::CallMethod((PyObject*)" << std::showbase << (
uintptr_t)
attr <<
", v))";
270 proxyCode <<
" ~" <<
clName <<
"() { TPyArg::CallDestructor(fPyObject); }\n";
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t attr
TClass instances represent classes, structs and namespaces in the ROOT type system.
static void AddClass(TClass *cl)
static: Add a class to the list and map of classes.
virtual TObject * FindObject(const char *name) const
Must be redefined in derived classes.
TClass * GetClass(const char *name, Bool_t load) override