Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
PyROOTModule.cxx File Reference
#include "PyROOTPythonize.h"
#include "PyROOTWrapper.h"
#include "RPyROOTApplication.h"
#include "CPyCppyy/API.h"
#include "../../cppyy/CPyCppyy/src/CallContext.h"
#include "../../cppyy/CPyCppyy/src/ProxyWrappers.h"
#include "TROOT.h"
#include "TSystem.h"
#include "RConfigure.h"
#include <string>
#include <sstream>
#include <utility>
#include <vector>
Include dependency graph for PyROOTModule.cxx:

Classes

struct  module_state
 

Namespaces

namespace  PyROOT
 

Macros

#define GETSTATE(m)   ((struct module_state *)PyModule_GetState(m))
 

Functions

PyObjectPyInit_libROOTPythonizations ()
 Initialization of extension module libROOTPythonizations.
 
static int rootmodule_clear (PyObject *m)
 
static int rootmodule_traverse (PyObject *m, visitproc visit, void *arg)
 

Variables

static PyMethodDef gPyROOTMethods []
 
static struct PyModuleDef moduledef
 

Macro Definition Documentation

◆ GETSTATE

#define GETSTATE (   m)    ((struct module_state *)PyModule_GetState(m))

Definition at line 69 of file PyROOTModule.cxx.

Function Documentation

◆ PyInit_libROOTPythonizations()

PyObject * PyInit_libROOTPythonizations ( )

Initialization of extension module libROOTPythonizations.

Definition at line 89 of file PyROOTModule.cxx.

◆ rootmodule_clear()

static int rootmodule_clear ( PyObject m)
static

Definition at line 77 of file PyROOTModule.cxx.

◆ rootmodule_traverse()

static int rootmodule_traverse ( PyObject m,
visitproc  visit,
void *  arg 
)
static

Definition at line 71 of file PyROOTModule.cxx.

Variable Documentation

◆ gPyROOTMethods

PyMethodDef gPyROOTMethods[]
static
Initial value:
= {
{(char *)"AddCPPInstancePickling", (PyCFunction)PyROOT::AddCPPInstancePickling, METH_VARARGS,
(char *)"Add a custom pickling mechanism for Cppyy Python proxy objects"},
{(char *)"AddBranchAttrSyntax", (PyCFunction)PyROOT::AddBranchAttrSyntax, METH_VARARGS,
(char *)"Allow to access branches as tree attributes"},
{(char *)"AddTClassDynamicCastPyz", (PyCFunction)PyROOT::AddTClassDynamicCastPyz, METH_VARARGS,
(char *)"Cast the void* returned by TClass::DynamicCast to the right type"},
{(char *)"AddTObjectEqNePyz", (PyCFunction)PyROOT::AddTObjectEqNePyz, METH_VARARGS,
(char *)"Add equality and inequality comparison operators to TObject"},
{(char *)"SetBranchAddressPyz", (PyCFunction)PyROOT::SetBranchAddressPyz, METH_VARARGS,
(char *)"Fully enable the use of TTree::SetBranchAddress from Python"},
{(char *)"BranchPyz", (PyCFunction)PyROOT::BranchPyz, METH_VARARGS,
(char *)"Fully enable the use of TTree::Branch from Python"},
{(char *)"AddPrettyPrintingPyz", (PyCFunction)PyROOT::AddPrettyPrintingPyz, METH_VARARGS,
(char *)"Add pretty printing pythonization"},
{(char *)"InitApplication", (PyCFunction)PyROOT::RPyROOTApplication::InitApplication, METH_VARARGS,
(char *)"Initialize interactive ROOT use from Python"},
{(char *)"InstallGUIEventInputHook", (PyCFunction)PyROOT::RPyROOTApplication::InstallGUIEventInputHook, METH_NOARGS,
(char *)"Install an input hook to process GUI events"},
{(char *)"_CPPInstance__expand__", (PyCFunction)PyROOT::CPPInstanceExpand, METH_VARARGS,
(char *)"Deserialize a pickled object"},
{(char *)"ClearProxiedObjects", (PyCFunction)PyROOT::ClearProxiedObjects, METH_NOARGS,
(char *)"Clear proxied objects regulated by PyROOT"},
{NULL, NULL, 0, NULL}}
static PyObject * InstallGUIEventInputHook(PyObject *self, PyObject *args)
Install a method hook for sending events to the GUI.
static PyObject * InitApplication(PyObject *self, PyObject *args)
Initialize an RPyROOTApplication.
PyObject * AddTObjectEqNePyz(PyObject *self, PyObject *args)
Add pythonization for equality and inequality operators in TObject.
PyObject * SetBranchAddressPyz(PyObject *self, PyObject *args)
Add pythonization for TTree::SetBranchAddress.
Definition TTreePyz.cxx:219
PyObject * BranchPyz(PyObject *self, PyObject *args)
Add pythonization for TTree::Branch.
Definition TTreePyz.cxx:410
PyObject * ClearProxiedObjects(PyObject *self, PyObject *args)
PyObject * AddCPPInstancePickling(PyObject *self, PyObject *args)
Set reduce attribute for CPPInstance objects.
PyObject * AddBranchAttrSyntax(PyObject *self, PyObject *args)
Allow branches to be accessed as attributes of a tree.
Definition TTreePyz.cxx:197
PyObject * CPPInstanceExpand(PyObject *self, PyObject *args)
Deserialize pickled objects.
PyObject * AddTClassDynamicCastPyz(PyObject *self, PyObject *args)
Add pythonization for TClass::DynamicCast.
Definition TClassPyz.cxx:71
PyObject * AddPrettyPrintingPyz(PyObject *self, PyObject *args)
Add pretty printing pythonization.

Definition at line 40 of file PyROOTModule.cxx.

◆ moduledef

struct PyModuleDef moduledef
static
Initial value:
= {PyModuleDef_HEAD_INIT, "libROOTPythonizations", NULL,
sizeof(struct module_state), gPyROOTMethods, NULL,
static int rootmodule_clear(PyObject *m)
static int rootmodule_traverse(PyObject *m, visitproc visit, void *arg)
static PyMethodDef gPyROOTMethods[]

Definition at line 83 of file PyROOTModule.cxx.