RootWrapper.cxx File Reference

#include "PyROOT.h"
#include "PyStrings.h"
#include "RootWrapper.h"
#include "PyRootType.h"
#include "ObjectProxy.h"
#include "MethodProxy.h"
#include "TemplateProxy.h"
#include "PropertyProxy.h"
#include "Pythonize.h"
#include "MethodHolder.h"
#include "ConstructorHolder.h"
#include "ClassMethodHolder.h"
#include "FunctionHolder.h"
#include "TSetItemHolder.h"
#include "MemoryRegulator.h"
#include "Utility.h"
#include "Adapters.h"
#include "TROOT.h"
#include "TSystem.h"
#include "TMethod.h"
#include "TDataMember.h"
#include "TBaseClass.h"
#include "TClassEdit.h"
#include "TInterpreter.h"
#include "TGlobal.h"
#include "DllImport.h"
#include "Api.h"
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <vector>

Go to the source code of this file.

Typedefs

typedef std::map< void *,
PyObject * > 
PyClassMap_t

Functions

PyObjectCreateNewROOTPythonClass (const std::string &name, PyObject *pybases)
Long_t GetDataMemberAddress (TClass *klass, TDataMember *mb)
void AddToGlobalScope (const char *label, TObject *obj, TClass *klass)
Bool_t LoadDictionaryForSTLType (const std::string &tname, void *klass)
void PyROOT::InitRoot ()
template<class T, class B, class M>
int PyROOT::BuildRootClassDict (const T &klass, PyObject *pyclass)
template<class T, class B, class M>
PyObjectPyROOT::BuildRootClassBases (const T &klass)
PyObjectPyROOT::MakeRootClass (PyObject *, PyObject *args)
PyObjectPyROOT::MakeRootClassFromType (TClass *klass)
template<class T, class B, class M>
PyObjectPyROOT::MakeRootClassFromString (const std::string &fullname, PyObject *scope)
PyObjectPyROOT::GetRootGlobal (PyObject *, PyObject *args)
PyObjectPyROOT::GetRootGlobalFromString (const std::string &name)
PyObjectPyROOT::BindRootObjectNoCast (void *address, TClass *klass, Bool_t isRef)
static Long_t GetObjectOffset (TClass *clCurrent, TClass *clDesired, void *address, bool downcast=true)
PyObjectPyROOT::BindRootObject (void *address, TClass *klass, Bool_t isRef)
PyObjectPyROOT::BindRootGlobal (TGlobal *gbl)

Variables

R__EXTERN PyObjectgRootModule
PyClassMap_t gPyClasses
std::set< std::stringgSTLTypes
std::set< std::stringgLoadedSTLTypes
{ ... } ::InitSTLTypes_t initSTLTypes_


Typedef Documentation

typedef std::map< void*, PyObject* > PyClassMap_t [static]

Definition at line 60 of file RootWrapper.cxx.


Function Documentation

void @42::AddToGlobalScope ( const char *  label,
TObject obj,
TClass klass 
) [inline, static]

Definition at line 122 of file RootWrapper.cxx.

References PyROOT::BindRootObject(), and gRootModule.

Referenced by PyROOT::InitRoot().

PyObject* @42::CreateNewROOTPythonClass ( const std::string name,
PyObject pybases 
) [static]

Definition at line 64 of file RootWrapper.cxx.

References i, NULL, PyROOT::ObjectProxy_Type, Py_TYPE, and PyROOT::PyRootType_Type.

Referenced by PyROOT::MakeRootClassFromString().

Long_t @42::GetDataMemberAddress ( TClass klass,
TDataMember mb 
) [static]

Definition at line 102 of file RootWrapper.cxx.

References TClass::GetClassInfo(), and Cint::G__DataMemberInfo::Offset().

Referenced by PyROOT::BuildRootClassDict().

static Long_t GetObjectOffset ( TClass clCurrent,
TClass clDesired,
void *  address,
bool  downcast = true 
) [inline, static]

Definition at line 710 of file RootWrapper.cxx.

References G__BIT_ISVIRTUALBASE, TClass::GetBaseClassOffset(), TClass::GetClassInfo(), Cint::G__ClassInfo::IsBase(), and Cint::G__ClassInfo::Tagnum().

Referenced by PyROOT::BindRootObject().

Bool_t @42::LoadDictionaryForSTLType ( const std::string tname,
void *  klass 
) [static]

Definition at line 144 of file RootWrapper.cxx.

References gROOT, kTRUE, TROOT::ProcessLine(), and TClass::RemoveClass().

Referenced by PyROOT::MakeRootClassFromString().


Variable Documentation

std::set< std::string > gLoadedSTLTypes [static]

Definition at line 128 of file RootWrapper.cxx.

PyClassMap_t gPyClasses [static]

Definition at line 61 of file RootWrapper.cxx.

Referenced by PyROOT::MakeRootClassFromString(), and PyROOT::MakeRootClassFromType().

R__EXTERN PyObject* gRootModule

Definition at line 55 of file RootWrapper.cxx.

std::set< std::string > gSTLTypes [static]

Definition at line 128 of file RootWrapper.cxx.

struct { ... } InitSTLTypes_t initSTLTypes_ [static]


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