Logo ROOT  
Reference Guide
Utility.h File Reference
#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)
 
Py_ssize_t CPyCppyy::Utility::ArraySize (const std::string &name)
 
std::string CPyCppyy::Utility::ClassName (PyObject *pyobj)
 
const std::string CPyCppyy::Utility::Compound (const std::string &name)
 
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 > &)
 
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)
 
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)
 
std::string CPyCppyy::Utility::MapOperatorName (const std::string &name, bool bTakesParames)
 
PyObjectCPyCppyy::Utility::PyErr_Occurred_WithGIL ()
 
unsigned long CPyCppyy::PyLongOrInt_AsULong (PyObject *pyobject)
 
ULong64_t 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