Logo ROOT   6.14/05
Reference Guide
Classes | Namespaces | Macros | Functions
Converters.h File Reference
#include "TString.h"
#include <limits.h>
#include <string>
#include <map>
Include dependency graph for Converters.h:
This graph shows which files directly or indirectly include this file:

Classes

class  PyROOT::TConverter
 
class  PyROOT::TCppObjectArrayConverter
 
class  PyROOT::TCppObjectConverter
 
class  PyROOT::TCppObjectPtrConverter< ISREFERENCE >
 
class  PyROOT::TCStringConverter
 
class  PyROOT::TLongLongArrayConverter
 
class  PyROOT::TNonConstCStringConverter
 
class  PyROOT::TNonConstUCStringConverter
 
class  PyROOT::TNotImplementedConverter
 
class  PyROOT::TRefCppObjectConverter
 
class  PyROOT::TSmartPtrCppObjectConverter
 
class  PyROOT::TSTLIteratorConverter
 
class  PyROOT::TStrictCppObjectConverter
 
class  PyROOT::TValueCppObjectConverter
 
class  PyROOT::TVoidArrayConverter
 
class  PyROOT::TVoidConverter
 
class  PyROOT::TVoidPtrPtrConverter
 
class  PyROOT::TVoidPtrRefConverter
 

Namespaces

 PyROOT
 

Macros

#define PYROOT_DECLARE_ARRAY_CONVERTER(name)
 
#define PYROOT_DECLARE_BASIC_CONVERTER(name)
 
#define PYROOT_DECLARE_BASIC_CONVERTER2(name, base)
 
#define PYROOT_DECLARE_REF_CONVERTER(name)
 
#define PYROOT_DECLARE_STRING_CONVERTER(name, strtype)
 

Functions

TConverterPyROOT::CreateConverter (const std::string &fullType, Long_t size=-1)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (BoolArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (ShortArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (UShortArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (IntArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (UIntArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (LongArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (ULongArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (FloatArray)
 
 PyROOT::PYROOT_DECLARE_ARRAY_CONVERTER (DoubleArray)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Long)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Bool)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Char)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (UChar)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Short)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (UShort)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Int)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (ULong)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (LongLong)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (ULongLong)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Double)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (Float)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (LongDouble)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER (PyObject)
 
 PyROOT::PYROOT_DECLARE_BASIC_CONVERTER2 (UInt, ULong)
 
 PyROOT::PYROOT_DECLARE_REF_CONVERTER (Int)
 
 PyROOT::PYROOT_DECLARE_REF_CONVERTER (Long)
 
 PyROOT::PYROOT_DECLARE_REF_CONVERTER (Double)
 
 PyROOT::PYROOT_DECLARE_STRING_CONVERTER (TString, TString)
 
 PyROOT::PYROOT_DECLARE_STRING_CONVERTER (STLString, std::string)
 
 PyROOT::PYROOT_DECLARE_STRING_CONVERTER (STLStringView, std::string_view)
 

Macro Definition Documentation

◆ PYROOT_DECLARE_ARRAY_CONVERTER

#define PYROOT_DECLARE_ARRAY_CONVERTER (   name)
Value:
class T##name##Converter : public TConverter { \
public: \
T##name##Converter( Py_ssize_t size = -1 ) { fSize = size; } \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
virtual PyObject* FromMemory( void* ); \
virtual Bool_t ToMemory( PyObject*, void* ); \
private: \
Py_ssize_t fSize; \
}; \
\
class T##name##RefConverter : public T##name##Converter { \
public: \
using T##name##Converter::T##name##Converter; \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
}
double T(double x)
Definition: ChebyshevPol.h:34
bool Bool_t
Definition: RtypesCore.h:59
Named parameter, streamable and storable.
Definition: TParameter.h:37
int Py_ssize_t
Definition: PyROOT.h:156
char name[80]
Definition: TGX11.cxx:109
_object PyObject
Definition: TPyArg.h:20

Definition at line 63 of file Converters.h.

◆ PYROOT_DECLARE_BASIC_CONVERTER

#define PYROOT_DECLARE_BASIC_CONVERTER (   name)
Value:
class T##name##Converter : public TConverter { \
public: \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
virtual PyObject* FromMemory( void* ); \
virtual Bool_t ToMemory( PyObject*, void* ); \
}; \
\
class TConst##name##RefConverter : public TConverter { \
public: \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
}
double T(double x)
Definition: ChebyshevPol.h:34
bool Bool_t
Definition: RtypesCore.h:59
Named parameter, streamable and storable.
Definition: TParameter.h:37
char name[80]
Definition: TGX11.cxx:109
_object PyObject
Definition: TPyArg.h:20

Definition at line 31 of file Converters.h.

◆ PYROOT_DECLARE_BASIC_CONVERTER2

#define PYROOT_DECLARE_BASIC_CONVERTER2 (   name,
  base 
)
Value:
class T##name##Converter : public T##base##Converter { \
public: \
virtual PyObject* FromMemory( void* ); \
virtual Bool_t ToMemory( PyObject*, void* ); \
}; \
\
class TConst##name##RefConverter : public TConverter { \
public: \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
}
double T(double x)
Definition: ChebyshevPol.h:34
bool Bool_t
Definition: RtypesCore.h:59
Named parameter, streamable and storable.
Definition: TParameter.h:37
char name[80]
Definition: TGX11.cxx:109
_object PyObject
Definition: TPyArg.h:20

Definition at line 45 of file Converters.h.

◆ PYROOT_DECLARE_REF_CONVERTER

#define PYROOT_DECLARE_REF_CONVERTER (   name)
Value:
class T##name##RefConverter : public TConverter { \
public: \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
};
double T(double x)
Definition: ChebyshevPol.h:34
bool Bool_t
Definition: RtypesCore.h:59
Named parameter, streamable and storable.
Definition: TParameter.h:37
char name[80]
Definition: TGX11.cxx:109
_object PyObject
Definition: TPyArg.h:20

Definition at line 57 of file Converters.h.

◆ PYROOT_DECLARE_STRING_CONVERTER

#define PYROOT_DECLARE_STRING_CONVERTER (   name,
  strtype 
)
Value:
class T##name##Converter : public TCppObjectConverter { \
public: \
T##name##Converter( Bool_t keepControl = kTRUE ); \
public: \
virtual Bool_t SetArg( PyObject*, TParameter&, TCallContext* ctxt = 0 );\
virtual PyObject* FromMemory( void* address ); \
virtual Bool_t ToMemory( PyObject* value, void* address ); \
private: \
strtype fBuffer; \
}
double T(double x)
Definition: ChebyshevPol.h:34
bool Bool_t
Definition: RtypesCore.h:59
Named parameter, streamable and storable.
Definition: TParameter.h:37
const Bool_t kTRUE
Definition: RtypesCore.h:87
char name[80]
Definition: TGX11.cxx:109
_object PyObject
Definition: TPyArg.h:20

Definition at line 262 of file Converters.h.