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); \
\
public: \
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 fBuffer; \
}
fBuffer

Definition at line 356 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 419 of file DeclareConverters.h.

◆ fConverters

std::vector<Converter*> fConverters
protected

Definition at line 466 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 445 of file DeclareConverters.h.

◆ fKeepControl

bool fKeepControl
protected

Definition at line 444 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 400 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 401 of file DeclareConverters.h.

◆ fSmartPtrType

Cppyy::TCppType_t fSmartPtrType
protected

Definition at line 442 of file DeclareConverters.h.

◆ fUnderlyingType

Cppyy::TCppType_t fUnderlyingType
protected

Definition at line 443 of file DeclareConverters.h.

◆ fValueSize

size_t fValueSize
protected

Definition at line 469 of file DeclareConverters.h.

◆ fValueType

Cppyy::TCppType_t fValueType
protected

Definition at line 468 of file DeclareConverters.h.

◆ fValueTypeName

std::string fValueTypeName
protected

Definition at line 467 of file DeclareConverters.h.