Logo ROOT   6.14/05
Reference Guide
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
PyROOT Namespace Reference

Namespaces

 PyStrings
 
 Utility
 

Classes

class  MethodProxy
 
class  ObjectProxy
 
class  PropertyProxy
 
class  PyCallable
 
class  PyGILRAII
 
class  PyRootClass
 Type object to hold TClassRef instance (this is only semantically a presentation of PyRootType instances, not in a C++ sense) More...
 
struct  TCallContext
 
class  TClassMethodHolder
 
class  TConstructorHolder
 
class  TConverter
 
class  TCppObjectArrayConverter
 
class  TCppObjectArrayExecutor
 
class  TCppObjectBySmartPtrExecutor
 
class  TCppObjectBySmartPtrPtrExecutor
 
class  TCppObjectBySmartPtrRefExecutor
 
class  TCppObjectByValueExecutor
 
class  TCppObjectConverter
 
class  TCppObjectExecutor
 
class  TCppObjectPtrConverter
 
class  TCppObjectPtrPtrExecutor
 
class  TCppObjectPtrRefExecutor
 
class  TCppObjectRefExecutor
 
class  TCStringConverter
 
class  TemplateProxy
 Template proxy object to return functions and methods. More...
 
class  TExecutor
 
class  TFunctionHolder
 
class  TLongLongArrayConverter
 
class  TMemoryRegulator
 
class  TMethodHolder
 
class  TNonConstCStringConverter
 
class  TNonConstUCStringConverter
 
class  TNotImplementedConverter
 
struct  TParameter
 
class  TPyBufferFactory
 Factory for python buffers of non-string type. More...
 
class  TPyException
 
class  TPyROOTApplication
 
class  TRefCppObjectConverter
 
class  TRefExecutor
 
class  TSetItemHolder
 
class  TSmartPtrCppObjectConverter
 
class  TSTLIteratorConverter
 
class  TStrictCppObjectConverter
 
class  TValueCppObjectConverter
 
class  TVoidArrayConverter
 
class  TVoidConverter
 
class  TVoidPtrPtrConverter
 
class  TVoidPtrRefConverter
 

Typedefs

typedef TPyBufferFactory BufFac_t
 
typedef TConverter *(* ConverterFactory_t) (Long_t size)
 
typedef std::map< std::string, ConverterFactory_tConvFactories_t
 
typedef std::map< std::string, ExecutorFactory_tExecFactories_t
 
typedef TExecutor *(* ExecutorFactory_t) ()
 

Enumerations

enum  ETypeDetails {
  kNone = 0, kIsStaticData = 1, kIsEnumData = 2, kIsConstData = 4,
  kIsArrayType = 8
}
 

Functions

PyObjectBindCppGlobal (TGlobal *)
 gbl == 0 means global does not exist (rather than gbl is NULL pointer) More...
 
PyObjectBindCppObject (Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, Bool_t isRef=kFALSE)
 if the object is a null pointer, return a typed one (as needed for overloading) More...
 
PyObjectBindCppObject (Cppyy::TCppObject_t object, const std::string &clName, Bool_t isRef=kFALSE)
 
PyObjectBindCppObjectArray (Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Int_t size)
 TODO: this function exists for symmetry; need to figure out if it's useful. More...
 
PyObjectBindCppObjectNoCast (Cppyy::TCppObject_t object, Cppyy::TCppType_t klass, Bool_t isRef=kFALSE, Bool_t isValue=kFALSE)
 only known or knowable objects will be bound (null object is ok) More...
 
TConverterCreateConverter (const std::string &fullType, Long_t size=-1)
 
TExecutorCreateExecutor (const std::string &fullType, Bool_t manage_smart_ptr=kTRUE)
 
Bool_t CreatePyStrings ()
 
PyObjectCreateScopeProxy (Cppyy::TCppScope_t)
 Convenience function with a lookup first through the known existing proxies. More...
 
PyObjectCreateScopeProxy (PyObject *, PyObject *args)
 Build a python shadow class for the named C++ class. More...
 
PyObjectCreateScopeProxy (const std::string &scope_name, PyObject *parent=0)
 Build a python shadow class for the named C++ class. More...
 
PyObjectDestroyPyStrings ()
 Remove all cached python strings. More...
 
ULong64_t GetAddress (std::vector< std::string > &p)
 
ULong64_t GetAddress (TTree &p)
 
PyObjectGetCppGlobal (const std::string &name)
 try named global variable/enum (first ROOT, then Cling: sync is too slow) More...
 
PyObjectGetCppGlobal (PyObject *, PyObject *args)
 get the requested name More...
 
PyObjectGetScopeProxy (Cppyy::TCppScope_t)
 Retrieve scope proxy from the known ones. More...
 
template<typename dtype >
ULong64_t GetVectorAddress (std::vector< dtype > &p)
 
static PyObjectim_call (PyObject *meth, PyObject *args, PyObject *kw)
 The mapping from a method to a function involves reshuffling of self back into the list of arguments. More...
 
static void im_dealloc (PyMethodObject *im)
 from instancemethod, but with custom type (at issue is that instancemethod is not meant to be derived from) More...
 
static PyObjectim_descr_get (PyObject *meth, PyObject *obj, PyObject *pyclass)
 from instancemethod: don't rebind an already bound method, or an unbound method of a class that's not a base class of pyclass More...
 
void InitRoot ()
 
Bool_t IsConstructor (UInt_t flags)
 
Bool_t IsCreator (UInt_t flags)
 
Bool_t IsSorted (UInt_t flags)
 
Bool_t ManagesSmartPtr (TCallContext *ctxt)
 
template<typename T >
Bool_t MethodProxy_Check (T *object)
 
template<typename T >
Bool_t MethodProxy_CheckExact (T *object)
 
MethodProxyMethodProxy_New (const std::string &name, std::vector< PyCallable * > &methods)
 
MethodProxyMethodProxy_New (const std::string &name, PyCallable *method)
 
template<typename T >
Bool_t ObjectProxy_Check (T *object)
 
template<typename T >
Bool_t ObjectProxy_CheckExact (T *object)
 
void op_dealloc_nofree (ObjectProxy *)
 Destroy the held C++ object, if owned; does not deallocate the proxy. More...
 
template<typename T >
Bool_t PropertyProxy_Check (T *object)
 
template<typename T >
Bool_t PropertyProxy_CheckExact (T *object)
 
PropertyProxyPropertyProxy_New (Cppyy::TCppScope_t scope, Cppyy::TCppIndex_t idata)
 
PropertyProxyPropertyProxy_NewConstant (Cppyy::TCppScope_t scope, const std::string &name, void *address)
 
ULong_t PyLongOrInt_AsULong (PyObject *pyobject)
 
ULong64_t PyLongOrInt_AsULong64 (PyObject *pyobject)
 Convert <pyobject> to C++ unsigned long long, with bounds checking. More...
 
 PYROOT_DECLARE_ARRAY_CONVERTER (BoolArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (ShortArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (UShortArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (IntArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (UIntArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (LongArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (ULongArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (FloatArray)
 
 PYROOT_DECLARE_ARRAY_CONVERTER (DoubleArray)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Long)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Bool)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Char)
 
 PYROOT_DECLARE_BASIC_CONVERTER (UChar)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Short)
 
 PYROOT_DECLARE_BASIC_CONVERTER (UShort)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Int)
 
 PYROOT_DECLARE_BASIC_CONVERTER (ULong)
 
 PYROOT_DECLARE_BASIC_CONVERTER (LongLong)
 
 PYROOT_DECLARE_BASIC_CONVERTER (ULongLong)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Double)
 
 PYROOT_DECLARE_BASIC_CONVERTER (Float)
 
 PYROOT_DECLARE_BASIC_CONVERTER (LongDouble)
 
 PYROOT_DECLARE_BASIC_CONVERTER (PyObject)
 
 PYROOT_DECLARE_BASIC_CONVERTER2 (UInt, ULong)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Bool)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (BoolConstRef)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Char)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (CharConstRef)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (UChar)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (UCharConstRef)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Short)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Int)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Long)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (ULong)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (LongLong)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (ULongLong)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Float)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Double)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (LongDouble)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Void)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (CString)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (VoidArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (BoolArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (ShortArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (UShortArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (CharArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (UCharArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (IntArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (UIntArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (LongArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (ULongArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (FloatArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (DoubleArray)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (STLString)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (TGlobal)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (Constructor)
 
 PYROOT_DECLARE_BASIC_EXECUTOR (PyObject)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Bool)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Char)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (UChar)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Short)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (UShort)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Int)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (UInt)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Long)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (ULong)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (LongLong)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (ULongLong)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Float)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (Double)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (LongDouble)
 
 PYROOT_DECLARE_BASIC_REFEXECUTOR (STLString)
 
 PYROOT_DECLARE_REF_CONVERTER (Int)
 
 PYROOT_DECLARE_REF_CONVERTER (Long)
 
 PYROOT_DECLARE_REF_CONVERTER (Double)
 
 PYROOT_DECLARE_STRING_CONVERTER (TString, TString)
 
 PYROOT_DECLARE_STRING_CONVERTER (STLString, std::string)
 
 PYROOT_DECLARE_STRING_CONVERTER (STLStringView, std::string_view)
 
template<typename T >
Bool_t PyRootType_Check (T *object)
 
template<typename T >
Bool_t PyRootType_CheckExact (T *object)
 
Bool_t Pythonize (PyObject *pyclass, const std::string &name)
 
Bool_t ReleasesGIL (UInt_t flags)
 
Bool_t ReleasesGIL (TCallContext *ctxt)
 
template<typename T >
Bool_t TCustomFloat_Check (T *object)
 
template<typename T >
Bool_t TCustomFloat_CheckExact (T *object)
 
template<typename T >
Bool_t TCustomInstanceMethod_Check (T *object)
 
template<typename T >
Bool_t TCustomInstanceMethod_CheckExact (T *object)
 
PyObjectTCustomInstanceMethod_New (PyObject *func, PyObject *self, PyObject *pyclass)
 
template<typename T >
Bool_t TCustomInt_Check (T *object)
 
template<typename T >
Bool_t TCustomInt_CheckExact (T *object)
 
template<typename T >
Bool_t TemplateProxy_Check (T *object)
 
template<typename T >
Bool_t TemplateProxy_CheckExact (T *object)
 
TemplateProxyTemplateProxy_New (const std::string &name, PyObject *pyclass)
 
double TFNPyCallback (void *vpyfunc, Long_t npar, double *a0, double *a1)
 
void TMinuitPyCallback (void *vpyfunc, Long_t, Int_t &a0, Double_t *a1, Double_t &a2, Double_t *a3, Int_t a4)
 
template<typename BufType , typename... ColTypes, std::size_t... Idx>
void TTreeAsFlatMatrix (std::index_sequence< Idx... >, TTree &tree, std::vector< BufType > &matrix, std::vector< std::string > &columns)
 
template<typename BufType , typename... ColTypes>
void TTreeAsFlatMatrixHelper (TTree &tree, std::vector< BufType > &matrix, std::vector< std::string > &columns)
 
PyObjectTTreeGetAttr (ObjectProxy *self, PyObject *pyname)
 
template<typename T >
Bool_t TTupleOfInstances_Check (T *object)
 
template<typename T >
Bool_t TTupleOfInstances_CheckExact (T *object)
 
PyObjectTTupleOfInstances_New (Cppyy::TCppObject_t address, Cppyy::TCppType_t klass, Py_ssize_t nelems)
 
Bool_t UseStrictOwnership (TCallContext *ctxt)
 

Variables

static PyMethodObject * free_list
 
ConvFactories_t gConvFactories
 
R__EXTERN Bool_t gDictLookupActive = kFALSE
 
R__EXTERN dict_lookup_func gDictLookupOrg = 0
 
ExecFactories_t gExecFactories
 
std::vector< Cppyy::TCppType_tgIgnorePinnings
 
R__EXTERN PyObjectgNullPtrObject = 0
 
std::vector< std::pair< Cppyy::TCppType_t, Cppyy::TCppType_t > > gPinnedTypes
 
R__EXTERN PyObjectgRootModule = 0
 
PyTypeObject MethodProxy_Type
 
static int numfree = 0
 
PyTypeObject ObjectProxy_Type
 
PyTypeObject PropertyProxy_Type
 
PyTypeObject PyRootType_Type
 
PyTypeObject TCustomFloat_Type
 Custom builtins, detectable by type, for pass by ref. More...
 
PyTypeObject TCustomInstanceMethod_Type
 
PyTypeObject TCustomInt_Type
 
PyTypeObject TemplateProxy_Type
 
PyTypeObject TTupleOfInstances_Type
 Representation of C-style array of instances. More...
 

Typedef Documentation

◆ BufFac_t

Definition at line 48 of file TPyBufferFactory.h.

◆ ConverterFactory_t

typedef TConverter*(* PyROOT::ConverterFactory_t) (Long_t size)

Definition at line 36 of file Converters.cxx.

◆ ConvFactories_t

typedef std::map< std::string, ConverterFactory_t > PyROOT::ConvFactories_t

Definition at line 37 of file Converters.cxx.

◆ ExecFactories_t

typedef std::map< std::string, ExecutorFactory_t > PyROOT::ExecFactories_t

Definition at line 26 of file Executors.cxx.

◆ ExecutorFactory_t

typedef TExecutor*(* PyROOT::ExecutorFactory_t) ()

Definition at line 25 of file Executors.cxx.

Enumeration Type Documentation

◆ ETypeDetails

Enumerator
kNone 
kIsStaticData 
kIsEnumData 
kIsConstData 
kIsArrayType 

Definition at line 14 of file PropertyProxy.cxx.

Function Documentation

◆ BindCppGlobal()

PyObject * PyROOT::BindCppGlobal ( TGlobal gbl)

gbl == 0 means global does not exist (rather than gbl is NULL pointer)

Definition at line 903 of file RootWrapper.cxx.

◆ BindCppObject() [1/2]

PyObject * PyROOT::BindCppObject ( Cppyy::TCppObject_t  object,
Cppyy::TCppType_t  klass,
Bool_t  isRef = kFALSE 
)

if the object is a null pointer, return a typed one (as needed for overloading)

Definition at line 820 of file RootWrapper.cxx.

◆ BindCppObject() [2/2]

PyObject* PyROOT::BindCppObject ( Cppyy::TCppObject_t  object,
const std::string &  clName,
Bool_t  isRef = kFALSE 
)
inline

Definition at line 35 of file RootWrapper.h.

◆ BindCppObjectArray()

PyObject * PyROOT::BindCppObjectArray ( Cppyy::TCppObject_t  address,
Cppyy::TCppType_t  klass,
Int_t  size 
)

TODO: this function exists for symmetry; need to figure out if it's useful.

Definition at line 894 of file RootWrapper.cxx.

◆ BindCppObjectNoCast()

PyObject * PyROOT::BindCppObjectNoCast ( Cppyy::TCppObject_t  object,
Cppyy::TCppType_t  klass,
Bool_t  isRef = kFALSE,
Bool_t  isValue = kFALSE 
)

only known or knowable objects will be bound (null object is ok)

Definition at line 787 of file RootWrapper.cxx.

◆ CreateConverter()

PyROOT::TConverter * PyROOT::CreateConverter ( const std::string &  fullType,
Long_t  size = -1 
)

Definition at line 1404 of file Converters.cxx.

◆ CreateExecutor()

PyROOT::TExecutor * PyROOT::CreateExecutor ( const std::string &  fullType,
Bool_t  manage_smart_ptr = kTRUE 
)

Definition at line 637 of file Executors.cxx.

◆ CreatePyStrings()

Bool_t PyROOT::CreatePyStrings ( )

Definition at line 61 of file PyStrings.cxx.

◆ CreateScopeProxy() [1/3]

PyObject * PyROOT::CreateScopeProxy ( Cppyy::TCppScope_t  scope)

Convenience function with a lookup first through the known existing proxies.

Definition at line 476 of file RootWrapper.cxx.

◆ CreateScopeProxy() [2/3]

PyObject * PyROOT::CreateScopeProxy ( PyObject ,
PyObject args 
)

Build a python shadow class for the named C++ class.

Definition at line 488 of file RootWrapper.cxx.

◆ CreateScopeProxy() [3/3]

PyObject * PyROOT::CreateScopeProxy ( const std::string &  scope_name,
PyObject parent = 0 
)

Build a python shadow class for the named C++ class.

Definition at line 500 of file RootWrapper.cxx.

◆ DestroyPyStrings()

PyObject * PyROOT::DestroyPyStrings ( )

Remove all cached python strings.

Definition at line 116 of file PyStrings.cxx.

◆ GetAddress() [1/2]

ULong64_t PyROOT::GetAddress ( std::vector< std::string > &  p)
inline

Definition at line 25 of file TTreeAsFlatMatrix.h.

◆ GetAddress() [2/2]

ULong64_t PyROOT::GetAddress ( TTree p)
inline

Definition at line 26 of file TTreeAsFlatMatrix.h.

◆ GetCppGlobal() [1/2]

PyObject * PyROOT::GetCppGlobal ( const std::string &  name)

try named global variable/enum (first ROOT, then Cling: sync is too slow)

Definition at line 756 of file RootWrapper.cxx.

◆ GetCppGlobal() [2/2]

PyObject * PyROOT::GetCppGlobal ( PyObject ,
PyObject args 
)

get the requested name

Definition at line 743 of file RootWrapper.cxx.

◆ GetScopeProxy()

PyObject * PyROOT::GetScopeProxy ( Cppyy::TCppScope_t  scope)

Retrieve scope proxy from the known ones.

Definition at line 459 of file RootWrapper.cxx.

◆ GetVectorAddress()

template<typename dtype >
ULong64_t PyROOT::GetVectorAddress ( std::vector< dtype > &  p)

Definition at line 23 of file TTreeAsFlatMatrix.h.

◆ im_call()

static PyObject* PyROOT::im_call ( PyObject meth,
PyObject args,
PyObject kw 
)
static

The mapping from a method to a function involves reshuffling of self back into the list of arguments.

However, the pythonized methods will then have to undo that shuffling, which is inefficient. This method is the same as the one for the instancemethod object, except for the shuffling.

Definition at line 212 of file TCustomPyTypes.cxx.

◆ im_dealloc()

static void PyROOT::im_dealloc ( PyMethodObject *  im)
static

from instancemethod, but with custom type (at issue is that instancemethod is not meant to be derived from)

Definition at line 184 of file TCustomPyTypes.cxx.

◆ im_descr_get()

static PyObject* PyROOT::im_descr_get ( PyObject meth,
PyObject obj,
PyObject pyclass 
)
static

from instancemethod: don't rebind an already bound method, or an unbound method of a class that's not a base class of pyclass

Definition at line 255 of file TCustomPyTypes.cxx.

◆ InitRoot()

void PyROOT::InitRoot ( )

Definition at line 177 of file RootWrapper.cxx.

◆ IsConstructor()

Bool_t PyROOT::IsConstructor ( UInt_t  flags)
inline

Definition at line 69 of file TCallContext.h.

◆ IsCreator()

Bool_t PyROOT::IsCreator ( UInt_t  flags)
inline

Definition at line 65 of file TCallContext.h.

◆ IsSorted()

Bool_t PyROOT::IsSorted ( UInt_t  flags)
inline

Definition at line 61 of file TCallContext.h.

◆ ManagesSmartPtr()

Bool_t PyROOT::ManagesSmartPtr ( TCallContext ctxt)
inline

Definition at line 73 of file TCallContext.h.

◆ MethodProxy_Check()

template<typename T >
Bool_t PyROOT::MethodProxy_Check ( T *  object)
inline

Definition at line 63 of file MethodProxy.h.

◆ MethodProxy_CheckExact()

template<typename T >
Bool_t PyROOT::MethodProxy_CheckExact ( T *  object)
inline

Definition at line 69 of file MethodProxy.h.

◆ MethodProxy_New() [1/2]

MethodProxy* PyROOT::MethodProxy_New ( const std::string &  name,
std::vector< PyCallable * > &  methods 
)
inline

Definition at line 75 of file MethodProxy.h.

◆ MethodProxy_New() [2/2]

MethodProxy* PyROOT::MethodProxy_New ( const std::string &  name,
PyCallable method 
)
inline

Definition at line 84 of file MethodProxy.h.

◆ ObjectProxy_Check()

template<typename T >
Bool_t PyROOT::ObjectProxy_Check ( T *  object)
inline

Definition at line 91 of file ObjectProxy.h.

◆ ObjectProxy_CheckExact()

template<typename T >
Bool_t PyROOT::ObjectProxy_CheckExact ( T *  object)
inline

Definition at line 97 of file ObjectProxy.h.

◆ op_dealloc_nofree()

void PyROOT::op_dealloc_nofree ( ObjectProxy pyobj)

Destroy the held C++ object, if owned; does not deallocate the proxy.

Definition at line 46 of file ObjectProxy.cxx.

◆ PropertyProxy_Check()

template<typename T >
Bool_t PyROOT::PropertyProxy_Check ( T *  object)
inline

Definition at line 50 of file PropertyProxy.h.

◆ PropertyProxy_CheckExact()

template<typename T >
Bool_t PyROOT::PropertyProxy_CheckExact ( T *  object)
inline

Definition at line 56 of file PropertyProxy.h.

◆ PropertyProxy_New()

PropertyProxy* PyROOT::PropertyProxy_New ( Cppyy::TCppScope_t  scope,
Cppyy::TCppIndex_t  idata 
)
inline

Definition at line 62 of file PropertyProxy.h.

◆ PropertyProxy_NewConstant()

PropertyProxy* PyROOT::PropertyProxy_NewConstant ( Cppyy::TCppScope_t  scope,
const std::string &  name,
void address 
)
inline

Definition at line 72 of file PropertyProxy.h.

◆ PyLongOrInt_AsULong()

ULong_t PyROOT::PyLongOrInt_AsULong ( PyObject pyobject)

Definition at line 145 of file Utility.cxx.

◆ PyLongOrInt_AsULong64()

ULong64_t PyROOT::PyLongOrInt_AsULong64 ( PyObject pyobject)

Convert <pyobject> to C++ unsigned long long, with bounds checking.

Definition at line 166 of file Utility.cxx.

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [1/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( BoolArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [2/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( ShortArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [3/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( UShortArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [4/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( IntArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [5/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( UIntArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [6/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( LongArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [7/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( ULongArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [8/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( FloatArray  )

◆ PYROOT_DECLARE_ARRAY_CONVERTER() [9/9]

PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER ( DoubleArray  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [1/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Long  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [2/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Bool  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [3/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Char  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [4/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( UChar  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [5/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Short  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [6/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( UShort  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [7/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Int  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [8/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( ULong  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [9/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( LongLong  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [10/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( ULongLong  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [11/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Double  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [12/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( Float  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [13/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( LongDouble  )

◆ PYROOT_DECLARE_BASIC_CONVERTER() [14/14]

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER ( PyObject  )

◆ PYROOT_DECLARE_BASIC_CONVERTER2()

PyROOT::PYROOT_DECLARE_BASIC_CONVERTER2 ( UInt  ,
ULong   
)

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [1/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Bool  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [2/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( BoolConstRef  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [3/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Char  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [4/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( CharConstRef  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [5/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( UChar  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [6/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( UCharConstRef  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [7/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Short  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [8/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Int  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [9/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Long  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [10/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( ULong  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [11/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( LongLong  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [12/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( ULongLong  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [13/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Float  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [14/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Double  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [15/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( LongDouble  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [16/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Void  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [17/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( CString  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [18/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( VoidArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [19/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( BoolArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [20/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( ShortArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [21/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( UShortArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [22/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( CharArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [23/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( UCharArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [24/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( IntArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [25/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( UIntArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [26/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( LongArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [27/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( ULongArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [28/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( FloatArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [29/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( DoubleArray  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [30/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( STLString  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [31/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( TGlobal  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [32/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( Constructor  )

◆ PYROOT_DECLARE_BASIC_EXECUTOR() [33/33]

PyROOT::PYROOT_DECLARE_BASIC_EXECUTOR ( PyObject  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [1/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Bool  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [2/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Char  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [3/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( UChar  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [4/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Short  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [5/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( UShort  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [6/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Int  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [7/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( UInt  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [8/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Long  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [9/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( ULong  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [10/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( LongLong  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [11/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( ULongLong  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [12/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Float  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [13/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( Double  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [14/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( LongDouble  )

◆ PYROOT_DECLARE_BASIC_REFEXECUTOR() [15/15]

PyROOT::PYROOT_DECLARE_BASIC_REFEXECUTOR ( STLString  )

◆ PYROOT_DECLARE_REF_CONVERTER() [1/3]

PyROOT::PYROOT_DECLARE_REF_CONVERTER ( Int  )

◆ PYROOT_DECLARE_REF_CONVERTER() [2/3]

PyROOT::PYROOT_DECLARE_REF_CONVERTER ( Long  )

◆ PYROOT_DECLARE_REF_CONVERTER() [3/3]

PyROOT::PYROOT_DECLARE_REF_CONVERTER ( Double  )

◆ PYROOT_DECLARE_STRING_CONVERTER() [1/3]

PyROOT::PYROOT_DECLARE_STRING_CONVERTER ( TString  ,
TString   
)

◆ PYROOT_DECLARE_STRING_CONVERTER() [2/3]

PyROOT::PYROOT_DECLARE_STRING_CONVERTER ( STLString  ,
std::string   
)

◆ PYROOT_DECLARE_STRING_CONVERTER() [3/3]

PyROOT::PYROOT_DECLARE_STRING_CONVERTER ( STLStringView  ,
std::string_view   
)

◆ PyRootType_Check()

template<typename T >
Bool_t PyROOT::PyRootType_Check ( T *  object)
inline

Definition at line 50 of file PyRootType.h.

◆ PyRootType_CheckExact()

template<typename T >
Bool_t PyROOT::PyRootType_CheckExact ( T *  object)
inline

Definition at line 56 of file PyRootType.h.

◆ Pythonize()

Bool_t PyROOT::Pythonize ( PyObject pyclass,
const std::string &  name 
)

Definition at line 2325 of file Pythonize.cxx.

◆ ReleasesGIL() [1/2]

Bool_t PyROOT::ReleasesGIL ( UInt_t  flags)
inline

Definition at line 77 of file TCallContext.h.

◆ ReleasesGIL() [2/2]

Bool_t PyROOT::ReleasesGIL ( TCallContext ctxt)
inline

Definition at line 81 of file TCallContext.h.

◆ TCustomFloat_Check()

template<typename T >
Bool_t PyROOT::TCustomFloat_Check ( T *  object)
inline

Definition at line 22 of file TCustomPyTypes.h.

◆ TCustomFloat_CheckExact()

template<typename T >
Bool_t PyROOT::TCustomFloat_CheckExact ( T *  object)
inline

Definition at line 28 of file TCustomPyTypes.h.

◆ TCustomInstanceMethod_Check()

template<typename T >
Bool_t PyROOT::TCustomInstanceMethod_Check ( T *  object)
inline

Definition at line 52 of file TCustomPyTypes.h.

◆ TCustomInstanceMethod_CheckExact()

template<typename T >
Bool_t PyROOT::TCustomInstanceMethod_CheckExact ( T *  object)
inline

Definition at line 58 of file TCustomPyTypes.h.

◆ TCustomInstanceMethod_New()

PyObject * PyROOT::TCustomInstanceMethod_New ( PyObject func,
PyObject self,
PyObject pyclass 
)

Definition at line 140 of file TCustomPyTypes.cxx.

◆ TCustomInt_Check()

template<typename T >
Bool_t PyROOT::TCustomInt_Check ( T *  object)
inline

Definition at line 37 of file TCustomPyTypes.h.

◆ TCustomInt_CheckExact()

template<typename T >
Bool_t PyROOT::TCustomInt_CheckExact ( T *  object)
inline

Definition at line 43 of file TCustomPyTypes.h.

◆ TemplateProxy_Check()

template<typename T >
Bool_t PyROOT::TemplateProxy_Check ( T *  object)
inline

Definition at line 50 of file TemplateProxy.h.

◆ TemplateProxy_CheckExact()

template<typename T >
Bool_t PyROOT::TemplateProxy_CheckExact ( T *  object)
inline

Definition at line 56 of file TemplateProxy.h.

◆ TemplateProxy_New()

TemplateProxy* PyROOT::TemplateProxy_New ( const std::string &  name,
PyObject pyclass 
)
inline

Definition at line 62 of file TemplateProxy.h.

◆ TFNPyCallback()

double PyROOT::TFNPyCallback ( void vpyfunc,
Long_t  npar,
double *  a0,
double *  a1 
)

Definition at line 1782 of file Pythonize.cxx.

◆ TMinuitPyCallback()

void PyROOT::TMinuitPyCallback ( void vpyfunc,
Long_t  ,
Int_t a0,
Double_t a1,
Double_t a2,
Double_t a3,
Int_t  a4 
)

Definition at line 1752 of file Pythonize.cxx.

◆ TTreeAsFlatMatrix()

template<typename BufType , typename... ColTypes, std::size_t... Idx>
void PyROOT::TTreeAsFlatMatrix ( std::index_sequence< Idx... >  ,
TTree tree,
std::vector< BufType > &  matrix,
std::vector< std::string > &  columns 
)

Definition at line 29 of file TTreeAsFlatMatrix.h.

◆ TTreeAsFlatMatrixHelper()

template<typename BufType , typename... ColTypes>
void PyROOT::TTreeAsFlatMatrixHelper ( TTree tree,
std::vector< BufType > &  matrix,
std::vector< std::string > &  columns 
)

Definition at line 47 of file TTreeAsFlatMatrix.h.

◆ TTreeGetAttr()

PyObject* PyROOT::TTreeGetAttr ( ObjectProxy self,
PyObject pyname 
)

Definition at line 1388 of file Pythonize.cxx.

◆ TTupleOfInstances_Check()

template<typename T >
Bool_t PyROOT::TTupleOfInstances_Check ( T *  object)
inline

Definition at line 20 of file TTupleOfInstances.h.

◆ TTupleOfInstances_CheckExact()

template<typename T >
Bool_t PyROOT::TTupleOfInstances_CheckExact ( T *  object)
inline

Definition at line 26 of file TTupleOfInstances.h.

◆ TTupleOfInstances_New()

PyObject * PyROOT::TTupleOfInstances_New ( Cppyy::TCppObject_t  address,
Cppyy::TCppType_t  klass,
Py_ssize_t  nelems 
)

Definition at line 12 of file TTupleOfInstances.cxx.

◆ UseStrictOwnership()

Bool_t PyROOT::UseStrictOwnership ( TCallContext ctxt)
inline

Definition at line 85 of file TCallContext.h.

Variable Documentation

◆ free_list

PyMethodObject* PyROOT::free_list
static

Definition at line 134 of file TCustomPyTypes.cxx.

◆ gConvFactories

ConvFactories_t PyROOT::gConvFactories

Definition at line 38 of file Converters.cxx.

◆ gDictLookupActive

Bool_t PyROOT::gDictLookupActive = kFALSE

Definition at line 18 of file Utility.h.

◆ gDictLookupOrg

dict_lookup_func PyROOT::gDictLookupOrg = 0

Definition at line 15 of file Utility.h.

◆ gExecFactories

ExecFactories_t PyROOT::gExecFactories

Definition at line 27 of file Executors.cxx.

◆ gIgnorePinnings

R__EXTERN std::vector< Cppyy::TCppType_t > PyROOT::gIgnorePinnings

Definition at line 148 of file RootModule.cxx.

◆ gNullPtrObject

PyObject * PyROOT::gNullPtrObject = 0

Definition at line 39 of file Converters.cxx.

◆ gPinnedTypes

R__EXTERN std::vector< std::pair< Cppyy::TCppType_t, Cppyy::TCppType_t > > PyROOT::gPinnedTypes

Definition at line 147 of file RootModule.cxx.

◆ gRootModule

R__EXTERN PyObject * PyROOT::gRootModule = 0

Definition at line 39 of file ObjectProxy.cxx.

◆ MethodProxy_Type

R__EXTERN PyTypeObject PyROOT::MethodProxy_Type

Definition at line 836 of file MethodProxy.cxx.

◆ numfree

int PyROOT::numfree = 0
static

Definition at line 135 of file TCustomPyTypes.cxx.

◆ ObjectProxy_Type

R__EXTERN PyTypeObject PyROOT::ObjectProxy_Type

Definition at line 394 of file ObjectProxy.cxx.

◆ PropertyProxy_Type

R__EXTERN PyTypeObject PyROOT::PropertyProxy_Type

Definition at line 130 of file PropertyProxy.cxx.

◆ PyRootType_Type

R__EXTERN PyTypeObject PyROOT::PyRootType_Type

Definition at line 191 of file PyRootType.cxx.

◆ TCustomFloat_Type

R__EXTERN PyTypeObject PyROOT::TCustomFloat_Type

Custom builtins, detectable by type, for pass by ref.

Author
WLAV
Date
12/13/2006
Version
1.0

Definition at line 16 of file TCustomPyTypes.cxx.

◆ TCustomInstanceMethod_Type

R__EXTERN PyTypeObject PyROOT::TCustomInstanceMethod_Type

Definition at line 274 of file TCustomPyTypes.cxx.

◆ TCustomInt_Type

R__EXTERN PyTypeObject PyROOT::TCustomInt_Type

Definition at line 75 of file TCustomPyTypes.cxx.

◆ TemplateProxy_Type

R__EXTERN PyTypeObject PyROOT::TemplateProxy_Type

Definition at line 380 of file TemplateProxy.cxx.

◆ TTupleOfInstances_Type

R__EXTERN PyTypeObject PyROOT::TTupleOfInstances_Type

Representation of C-style array of instances.

Author
WLAV
Date
02/10/2014
Version
1.0

Definition at line 39 of file TTupleOfInstances.cxx.