Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Utility.h File Reference
#include <map>
#include <string>
#include <vector>
Include dependency graph for Utility.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  CPyCppyy::Utility::PyError_t
 
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)
 
size_t CPyCppyy::Utility::FetchError (std::vector< PyError_t > &, bool is_cpp=false)
 
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::SetDetailedException (std::vector< PyError_t > &errors, PyObject *topmsg, PyObject *defexc)
 

Variables

bool CPyCppyy::gDictLookupActive = false
 
dict_lookup_func CPyCppyy::gDictLookupOrg = 0