27 PyGILState_STATE m_GILState;
49 if ( PyROOT::gDictLookupActive ==
true )
52 if ( ! load || !
name )
106 nsCode <<
" std::vector<TPyArg> v; v.reserve(" <<
nVars <<
");\n";
113 nsCode <<
" return TPyReturn(TPyArg::CallMethod((PyObject*)" << (
void*)
attr <<
", v)); }\n";
135 std::string::size_type pos =
clName.rfind(
'.' );
137 if ( pos == std::string::npos )
180 proxyCode <<
"class " <<
clName <<
" {\nprivate:\n PyObject* fPyObject;\npublic:\n";
193 if (
mtName ==
"__del__" ) {
195 proxyCode <<
" ~" <<
clName <<
"() { TPyArg::CallDestructor(fPyObject); }\n";
204#if PY_VERSION_HEX < 0x03000000
219#if PY_VERSION_HEX < 0x03000000
238 proxyCode <<
" v.push_back(fPyObject);\n";
246 proxyCode <<
" return TPyReturn(TPyArg::CallMethod((PyObject*)" << (
void*)
attr <<
", v))";
248 proxyCode <<
" TPyArg::CallConstructor(fPyObject, (PyObject*)" << (
void*)
pyclass <<
", v)";
258 proxyCode <<
" " <<
clName <<
"() {\n TPyArg::CallConstructor(fPyObject, (PyObject*)" << (
void*)
pyclass <<
"); }\n";
261 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