Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
Utility.h File Reference
#include <map>
#include <memory>
#include <string>
#include <vector>

Classes

struct  CPyCppyy::Utility::PyError_t
struct  CPyCppyy::Utility::PyError_t::PyObjectDeleter
struct  CPyCppyy::Utility::PyOperators

Namespaces

namespace  CPyCppyy
namespace  CPyCppyy::Utility

Enumerations

enum  CPyCppyy::Utility::ArgPreference { CPyCppyy::Utility::kNone , CPyCppyy::Utility::kPointer , CPyCppyy::Utility::kReference , CPyCppyy::Utility::kValue }

Functions

bool CPyCppyy::Utility::AddToClass (PyObject *pyclass, const char *label, const char *func)
bool CPyCppyy::Utility::AddToClass (PyObject *pyclass, const char *label, PyCallable *pyfunc)
bool CPyCppyy::Utility::AddToClass (PyObject *pyclass, const char *label, PyCFunction cfunc, int flags=METH_VARARGS)
std::string CPyCppyy::Utility::ClassName (PyObject *pyobj)
void CPyCppyy::Utility::ConstructCallbackPreamble (const std::string &retType, const std::vector< std::string > &argtypes, std::ostringstream &code)
void CPyCppyy::Utility::ConstructCallbackReturn (const std::string &retType, int nArgs, std::ostringstream &code)
std::string CPyCppyy::Utility::ConstructTemplateArgs (PyObject *pyname, PyObject *tpArgs, PyObject *args=nullptr, ArgPreference=kNone, int argoff=0, int *pcnt=nullptr)
PyObjectCPyCppyy::Utility::CT2CppName (PyObject *pytc, const char *cpd, bool allow_voidp)
std::string CPyCppyy::Utility::CT2CppNameS (PyObject *pytc, bool allow_voidp)
size_t CPyCppyy::Utility::FetchError (std::vector< PyError_t > &, bool is_cpp=false)
PyError_t CPyCppyy::Utility::FetchPyError ()
PyCallableCPyCppyy::Utility::FindBinaryOperator (const std::string &lcname, const std::string &rcname, const char *op, Cppyy::TCppScope_t scope=0, bool reverse=false)
PyCallableCPyCppyy::Utility::FindBinaryOperator (PyObject *left, PyObject *right, const char *op, Cppyy::TCppScope_t scope=0)
PyCallableCPyCppyy::Utility::FindUnaryOperator (PyObject *pyclass, const char *op)
PyObjectCPyCppyy::Utility::FuncPtr2StdFunction (const std::string &retType, const std::string &signature, void *address)
Py_ssize_t CPyCppyy::Utility::GetBuffer (PyObject *pyobject, char tc, int size, void *&buf, bool check=true)
bool CPyCppyy::Utility::IncludePython ()
bool CPyCppyy::Utility::InitProxy (PyObject *module, PyTypeObject *pytype, const char *name)
bool CPyCppyy::Utility::IsSTLIterator (const std::string &classname)
std::string CPyCppyy::Utility::MapOperatorName (const std::string &name, bool bTakesParames, bool *stubbed=nullptr)
PyObjectCPyCppyy::Utility::PyErr_Occurred_WithGIL ()
unsigned long CPyCppyy::PyLongOrInt_AsULong (PyObject *pyobject)
PY_ULONG_LONG CPyCppyy::PyLongOrInt_AsULong64 (PyObject *pyobject)
void CPyCppyy::Utility::RestorePyError (PyError_t &error)
void CPyCppyy::Utility::SetDetailedException (std::vector< PyError_t > &&errors, PyObject *topmsg, PyObject *defexc)
std::map< std::string, char > const & CPyCppyy::Utility::TypecodeMap ()

Variables

bool CPyCppyy::gDictLookupActive = false