Utility.cxx File Reference

#include "PyROOT.h"
#include "PyStrings.h"
#include "Utility.h"
#include "ObjectProxy.h"
#include "MethodProxy.h"
#include "FunctionHolder.h"
#include "TCustomPyTypes.h"
#include "RootWrapper.h"
#include "PyCallable.h"
#include "Adapters.h"
#include "TROOT.h"
#include "TObject.h"
#include "TClassEdit.h"
#include "TClassRef.h"
#include "TCollection.h"
#include "TFunction.h"
#include "TMethodArg.h"
#include "TError.h"
#include "Api.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <list>
#include <utility>

Go to the source code of this file.

Typedefs

typedef std::map< std::string,
std::string
TC2POperatorMapping_t
typedef std::pair< PyObject *,
Long_t
CallInfo_t

Functions

ULong_t PyROOT::PyLongOrInt_AsULong (PyObject *pyobject)
ULong64_t PyROOT::PyLongOrInt_AsULong64 (PyObject *pyobject)
Bool_t PyROOT::Utility::SetMemoryPolicy (EMemoryPolicy e)
Bool_t PyROOT::Utility::SetSignalPolicy (ESignalPolicy e)
Bool_t PyROOT::Utility::AddToClass (PyObject *pyclass, const char *label, PyCFunction cfunc, int flags)
Bool_t PyROOT::Utility::AddToClass (PyObject *pyclass, const char *label, const char *func)
Bool_t PyROOT::Utility::AddToClass (PyObject *pyclass, const char *label, PyCallable *pyfunc)
Bool_t PyROOT::Utility::AddUsingToClass (PyObject *pyclass, const char *method)
Bool_t PyROOT::Utility::AddBinaryOperator (PyObject *left, PyObject *right, const char *op, const char *label)
Bool_t PyROOT::Utility::AddBinaryOperator (PyObject *pyclass, const char *op, const char *label)
static TFunctionFindAndAddOperator (const std::string &lcname, const std::string &rcname, const char *op, TCollection *funcs)
Bool_t PyROOT::Utility::AddBinaryOperator (PyObject *pyclass, const std::string &lcname, const std::string &rcname, const char *op, const char *label)
Bool_t PyROOT::Utility::BuildTemplateName (PyObject *&pyname, PyObject *args, int argoff)
Bool_t PyROOT::Utility::InitProxy (PyObject *module, PyTypeObject *pytype, const char *name)
int PyROOT::Utility::GetBuffer (PyObject *pyobject, char tc, int size, void *&buf, Bool_t check)
std::string PyROOT::Utility::MapOperatorName (const std::string &name, Bool_t bTakesParams)
PyROOT::Utility::EDataType PyROOT::Utility::EffectiveType (const std::string &name)
const std::string PyROOT::Utility::Compound (const std::string &name)
const std::string PyROOT::Utility::ClassName (PyObject *pyobj)
void PyROOT::Utility::ErrMsgCallback (char *msg)
void PyROOT::Utility::ErrMsgHandler (int level, Bool_t abort, const char *location, const char *msg)
Long_t PyROOT::Utility::InstallMethod (G__ClassInfo *scope, PyObject *callback, const std::string &mtName, const char *rtype, const char *signature, void *func, Int_t npar, Long_t extra)
PyObjectPyROOT::Utility::GetInstalledMethod (int tagnum, Long_t *extra)
PyObjectPyROOT::Utility::PyErr_Occurred_WithGIL ()

Variables

static TC2POperatorMapping_t gC2POperatorMapping
{ ... } ::InitOperatorMapping_t initOperatorMapping_
std::map< int, CallInfo_ts_PyObjectCallbacks


Typedef Documentation

typedef std::pair< PyObject*, Long_t > CallInfo_t [static]

Definition at line 121 of file Utility.cxx.

typedef std::map< std::string, std::string > TC2POperatorMapping_t

Definition at line 47 of file Utility.cxx.


Function Documentation

static TFunction* FindAndAddOperator ( const std::string lcname,
const std::string rcname,
const char *  op,
TCollection funcs 
) [inline, static]

Definition at line 340 of file Utility.cxx.

References TClassEdit::CleanType(), func(), TIter::Next(), TClassEdit::ResolveTypedef(), and true.

Referenced by PyROOT::Utility::AddBinaryOperator().


Variable Documentation

TC2POperatorMapping_t gC2POperatorMapping [static]

Definition at line 48 of file Utility.cxx.

Referenced by PyROOT::Utility::AddBinaryOperator(), and PyROOT::Utility::MapOperatorName().

struct { ... } InitOperatorMapping_t initOperatorMapping_ [static]

std::map< int, CallInfo_t > s_PyObjectCallbacks [static]

Definition at line 122 of file Utility.cxx.

Referenced by PyROOT::Utility::GetInstalledMethod(), and PyROOT::Utility::InstallMethod().


Generated on Tue Jul 5 15:56:10 2011 for ROOT_528-00b_version by  doxygen 1.5.1