Enumerations | |
enum | EMemoryPolicy |
enum | ESignalPolicy |
enum | EDataType |
Functions | |
Bool_t | SetMemoryPolicy (EMemoryPolicy e) |
Bool_t | SetSignalPolicy (ESignalPolicy e) |
Bool_t | AddToClass (PyObject *pyclass, const char *label, PyCFunction cfunc, int flags) |
Bool_t | AddToClass (PyObject *pyclass, const char *label, const char *func) |
Bool_t | AddToClass (PyObject *pyclass, const char *label, PyCallable *pyfunc) |
Bool_t | AddUsingToClass (PyObject *pyclass, const char *method) |
Bool_t | AddBinaryOperator (PyObject *left, PyObject *right, const char *op, const char *label) |
Bool_t | AddBinaryOperator (PyObject *pyclass, const char *op, const char *label) |
Bool_t | AddBinaryOperator (PyObject *pyclass, const std::string &lcname, const std::string &rcname, const char *op, const char *label) |
Bool_t | BuildTemplateName (PyObject *&pyname, PyObject *args, int argoff) |
Bool_t | InitProxy (PyObject *module, PyTypeObject *pytype, const char *name) |
int | GetBuffer (PyObject *pyobject, char tc, int size, void *&buf, Bool_t check) |
std::string | MapOperatorName (const std::string &name, Bool_t bTakesParams) |
PyROOT::Utility::EDataType | EffectiveType (const std::string &name) |
const std::string | Compound (const std::string &name) |
const std::string | ClassName (PyObject *pyobj) |
void | ErrMsgCallback (char *msg) |
void | ErrMsgHandler (int level, Bool_t abort, const char *location, const char *msg) |
Long_t | InstallMethod (G__ClassInfo *scope, PyObject *callback, const std::string &mtName, const char *rtype, const char *signature, void *func, Int_t npar, Long_t extra) |
PyObject * | GetInstalledMethod (int tagnum, Long_t *extra) |
PyObject * | PyErr_Occurred_WithGIL () |
Variables | |
R__EXTERN EMemoryPolicy | gMemoryPolicy |
R__EXTERN ESignalPolicy | gSignalPolicy |
const int | kPtrMask = 0x10000000 |
Bool_t PyROOT::Utility::AddBinaryOperator | ( | PyObject * | pyclass, | |
const std::string & | lcname, | |||
const std::string & | rcname, | |||
const char * | op, | |||
const char * | label = "" | |||
) |
Definition at line 369 of file Utility.cxx.
References AddToClass(), PyROOT::TScopeAdapter::ByName(), FindAndAddOperator(), func(), gC2POperatorMapping, TClassRef::GetClass(), TROOT::GetListOfGlobalFunctions(), gROOT, kFALSE, and kTRUE.
Referenced by PyROOT::Pythonize().
Bool_t PyROOT::Utility::AddBinaryOperator | ( | PyObject * | pyclass, | |
const char * | op, | |||
const char * | label = "" | |||
) |
Definition at line 329 of file Utility.cxx.
References AddBinaryOperator(), PyROOT::PyStrings::gName, pyname, PyROOT_PyUnicode_AsString, and TClassEdit::ResolveTypedef().
Bool_t PyROOT::Utility::AddBinaryOperator | ( | PyObject * | left, | |
PyObject * | right, | |||
const char * | op, | |||
const char * | label = "" | |||
) |
Definition at line 306 of file Utility.cxx.
References ClassName(), PyROOT::PyStrings::gClass, kFALSE, PyROOT::ObjectProxy_Check(), and result().
Referenced by AddBinaryOperator().
Definition at line 230 of file Utility.cxx.
References kTRUE, method, PyROOT::MethodProxy_Check(), and PyROOT::MethodProxy_New().
Referenced by AddBinaryOperator(), and PyROOT::Pythonize().
Bool_t PyROOT::Utility::AddToClass | ( | PyObject * | pyclass, | |
const char * | label, | |||
PyCFunction | cfunc, | |||
int | flags = METH_VARARGS | |||
) |
Definition at line 186 of file Utility.cxx.
References func(), kFALSE, kTRUE, method, NULL, and PyROOT::TCustomInstanceMethod_New().
Referenced by PyROOT::Pythonize().
Definition at line 253 of file Utility.cxx.
References PyROOT::MethodProxy::AddMethod(), PyROOT::PyStrings::gMRO, i, kFALSE, kTRUE, and PyROOT::MethodProxy_Check().
Referenced by PyROOT::Pythonize().
Definition at line 400 of file Utility.cxx.
References PyROOT::PyStrings::gName, i, kFALSE, kTRUE, PyROOT_PyUnicode_Append, PyROOT_PyUnicode_AppendAndDel, PyROOT_PyUnicode_AsString, PyROOT_PyUnicode_Check, PyROOT_PyUnicode_FromString, and PyROOT_PyUnicode_GetSize.
Referenced by MakeRootTemplateClass(), and PyROOT::tpp_call().
const std::string PyROOT::Utility::ClassName | ( | PyObject * | pyobj | ) |
Definition at line 648 of file Utility.cxx.
References PyROOT::PyStrings::gClass, PyROOT::PyStrings::gName, pyname, and PyROOT_PyUnicode_AsString.
Referenced by AddBinaryOperator().
const std::string PyROOT::Utility::Compound | ( | const std::string & | name | ) |
Definition at line 627 of file Utility.cxx.
References c, and compound().
Referenced by PyROOT::BindRootGlobal(), PyROOT::BuildRootClassDict(), PyROOT::CreateConverter(), PyROOT::CreateExecutor(), and EffectiveType().
EDataType PyROOT::Utility::EffectiveType | ( | const std::string & | name | ) |
Definition at line 580 of file Utility.cxx.
References Compound(), G__BIT_ISENUM, kBool, kChar, kDouble, kEnum, kFloat, kInt, kLong, kLongLong, kMacro, kOther, kPtrMask, kShort, kSTLString, kUInt, kULong, kVoid, mask, and TClassEdit::ShortType().
void PyROOT::Utility::ErrMsgCallback | ( | char * | msg | ) |
Definition at line 669 of file Utility.cxx.
References buf, fprintf(), len, name, NULL, p, PyROOT_PyUnicode_AppendAndDel, PyROOT_PyUnicode_Check, PyROOT_PyUnicode_FromString, snprintf, and value.
Referenced by PyROOT::TPyROOTApplication::InitCINTMessageCallback().
void PyROOT::Utility::ErrMsgHandler | ( | int | level, | |
Bool_t | abort, | |||
const char * | location, | |||
const char * | msg | |||
) |
Definition at line 739 of file Utility.cxx.
References DefaultErrorHandler(), gErrorIgnoreLevel, kError, kFALSE, kUnset, kWarning, and NULL.
Referenced by PyROOT::TPyROOTApplication::InitROOTMessageCallback().
int PyROOT::Utility::GetBuffer | ( | PyObject * | pyobject, | |
char | tc, | |||
int | size, | |||
void *& | buf, | |||
Bool_t | check = kTRUE | |||
) |
Definition at line 468 of file Utility.cxx.
References PyROOT::PyStrings::gTypeCode, if(), kTRUE, Py_TYPE, PyBytes_Check, PyROOT_PyUnicode_AsString, and PyROOT_PyUnicode_FromFormat.
Referenced by CArraySetArg(), G__G__Gui1_240_0_34(), G__G__Hist_100_0_61(), G__G__IO_202_0_22(), G__G__IO_252_0_4(), PyROOT::TTreeSetBranchAddress::operator()(), PyROOT::TTreeBranch::operator()(), PyROOT::TVoidPtrPtrConverter::SetArg(), PyROOT::TVoidArrayConverter::SetArg(), TClassStaticCast(), and PyROOT::TVoidArrayConverter::ToMemory().
Definition at line 821 of file Utility.cxx.
References s_PyObjectCallbacks.
Referenced by PyCtorCallback(), PyMemFuncCallback(), TFNPyCallback(), and TMinuitPyCallback().
Long_t PyROOT::Utility::InstallMethod | ( | Cint::G__ClassInfo * | scope, | |
PyObject * | callback, | |||
const std::string & | mtName, | |||
const char * | rtype, | |||
const char * | signature, | |||
void * | func, | |||
Int_t | npar = 0 , |
|||
Long_t | extra = 0 | |||
) |
Definition at line 763 of file Utility.cxx.
References Cint::G__ClassInfo::AddMethod(), Cint::G__ClassInfo::Fullname(), G__get_linked_tagnum, G__hash, G__lastifuncposition, G__memfunc_setup, hash, len, s_PyObjectCallbacks, tagname, G__linked_taginfo::tagname, tagnum, G__linked_taginfo::tagnum, and G__linked_taginfo::tagtype.
Referenced by TPyClassGenerator::GetClass().
std::string PyROOT::Utility::MapOperatorName | ( | const std::string & | name, | |
Bool_t | bTakesParams | |||
) |
Definition at line 534 of file Utility.cxx.
References gC2POperatorMapping, TClassEdit::ResolveTypedef(), start, and true.
Referenced by PyROOT::BuildRootClassDict().
PyObject * PyROOT::Utility::PyErr_Occurred_WithGIL | ( | ) |
Bool_t PyROOT::Utility::SetMemoryPolicy | ( | EMemoryPolicy | e | ) |
Definition at line 166 of file Utility.cxx.
References gMemoryPolicy, kFALSE, kHeuristics, kStrict, and kTRUE.
Bool_t PyROOT::Utility::SetSignalPolicy | ( | ESignalPolicy | e | ) |
Definition at line 176 of file Utility.cxx.
References gSignalPolicy, kFALSE, kFast, kSafe, and kTRUE.
Definition at line 71 of file Utility.h.
Referenced by PyROOT::mp_call(), PyROOT::MethodProxy::Set(), SetMemoryPolicy(), PyROOT::TRootObjectConverter::ToMemory(), PyROOT::TRootObjectPtrConverter::ToMemory(), and PyROOT::TVoidArrayConverter::ToMemory().
Definition at line 76 of file Utility.h.
Referenced by PyROOT::TMethodHolder< T, M >::Execute(), and SetSignalPolicy().
const int PyROOT::Utility::kPtrMask = 0x10000000 |