Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
DeclareConverters.h File Reference
#include "Converters.h"
#include "Dimensions.h"
#include <complex>
#include <string>
#include "ROOT/RStringView.hxx"
#include "TString.h"
Include dependency graph for DeclareConverters.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  CPyCppyy
 

Macros

#define CPPYY_DECLARE_ARRAY_CONVERTER(name)
 
#define CPPYY_DECLARE_BASIC_CONVERTER(name)
 
#define CPPYY_DECLARE_BASIC_CONVERTER2(name, base)
 
#define CPPYY_DECLARE_REFCONVERTER(name)
 
#define CPPYY_DECLARE_STRING_CONVERTER(name, strtype)
 

Macro Definition Documentation

◆ CPPYY_DECLARE_ARRAY_CONVERTER

#define CPPYY_DECLARE_ARRAY_CONVERTER (   name)
Value:
class name##ArrayConverter : public Converter { \
public: \
name##ArrayConverter(cdims_t dims); \
name##ArrayConverter(const name##ArrayConverter&) = delete; \
name##ArrayConverter& operator=(const name##ArrayConverter&) = delete; \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void*); \
virtual bool ToMemory(PyObject*, void*, PyObject* = nullptr); \
virtual bool HasState() { return true; } \
protected: \
dims_t fShape; \
bool fIsFixed; \
};
dims_t fShape
bool fIsFixed
_object PyObject
char name[80]
Definition TGX11.cxx:110
Binding & operator=(OUT(*fun)(void))

Definition at line 55 of file DeclareConverters.h.

◆ CPPYY_DECLARE_BASIC_CONVERTER

#define CPPYY_DECLARE_BASIC_CONVERTER (   name)
Value:
class name##Converter : public Converter { \
public: \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void*); \
virtual bool ToMemory(PyObject*, void*, PyObject* = nullptr); \
}; \
\
class Const##name##RefConverter : public Converter { \
public: \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void*); \
}

Definition at line 20 of file DeclareConverters.h.

◆ CPPYY_DECLARE_BASIC_CONVERTER2

#define CPPYY_DECLARE_BASIC_CONVERTER2 (   name,
  base 
)
Value:
class name##Converter : public base##Converter { \
public: \
virtual PyObject* FromMemory(void*); \
virtual bool ToMemory(PyObject*, void*, PyObject* = nullptr); \
}; \
\
class Const##name##RefConverter : public Converter { \
public: \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void*); \
}

Definition at line 35 of file DeclareConverters.h.

◆ CPPYY_DECLARE_REFCONVERTER

#define CPPYY_DECLARE_REFCONVERTER (   name)
Value:
class name##RefConverter : public Converter { \
public: \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void*); \
};

Definition at line 48 of file DeclareConverters.h.

◆ CPPYY_DECLARE_STRING_CONVERTER

#define CPPYY_DECLARE_STRING_CONVERTER (   name,
  strtype 
)
Value:
class name##Converter : public InstanceConverter { \
public: \
name##Converter(bool keepControl = true); \
virtual bool SetArg(PyObject*, Parameter&, CallContext* = nullptr); \
virtual PyObject* FromMemory(void* address); \
virtual bool ToMemory(PyObject*, void*, PyObject* = nullptr); \
virtual bool HasState() { return true; } \
protected: \
strtype fStringBuffer; \
}
TString fStringBuffer

Definition at line 354 of file DeclareConverters.h.

Variable Documentation

◆ fBuffer

void* fBuffer = nullptr
protected

Definition at line 134 of file DeclareConverters.h.

◆ fClass

Cppyy::TCppType_t fClass
protected

Definition at line 272 of file DeclareConverters.h.

◆ fConverter

Converter* fConverter
protected

Definition at line 424 of file DeclareConverters.h.

◆ fConverters

std::vector<Converter*> fConverters
protected

Definition at line 471 of file DeclareConverters.h.

◆ fIsConst

bool fIsConst
protected

Definition at line 273 of file DeclareConverters.h.

◆ fIsFixed

bool fIsFixed
protected

Definition at line 205 of file DeclareConverters.h.

◆ fIsRef

bool fIsRef
protected

Definition at line 450 of file DeclareConverters.h.

◆ fKeepControl

bool fKeepControl
protected

Definition at line 449 of file DeclareConverters.h.

◆ fMaxSize

std::wstring::size_type fMaxSize
protected

Definition at line 135 of file DeclareConverters.h.

◆ fRetType

std::string fRetType
protected

Definition at line 405 of file DeclareConverters.h.

◆ fShape

dims_t fShape
protected

Definition at line 205 of file DeclareConverters.h.

◆ fSignature

std::string fSignature
protected

Definition at line 406 of file DeclareConverters.h.

◆ fSmartPtrType

Cppyy::TCppType_t fSmartPtrType
protected

Definition at line 447 of file DeclareConverters.h.

◆ fStringBuffer

std::wstring fStringBuffer
protected

Definition at line 366 of file DeclareConverters.h.

◆ fUnderlyingType

Cppyy::TCppType_t fUnderlyingType
protected

Definition at line 448 of file DeclareConverters.h.

◆ fValueSize

size_t fValueSize
protected

Definition at line 474 of file DeclareConverters.h.

◆ fValueType

Cppyy::TCppType_t fValueType
protected

Definition at line 473 of file DeclareConverters.h.

◆ fValueTypeName

std::string fValueTypeName
protected

Definition at line 472 of file DeclareConverters.h.