Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
DeclareConverters.h File Reference
#include "Converters.h"
#include "Dimensions.h"
#include <complex>
#include <string>
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; \
bool SetArg(PyObject*, Parameter&, CallContext* = nullptr) override; \
PyObject* FromMemory(void*) override; \
bool ToMemory(PyObject*, void*, PyObject* = nullptr) override; \
bool HasState() override { return true; } \
protected: \
dims_t fShape; \
bool fIsFixed; \
};
dims_t fShape
bool fIsFixed
_object PyObject
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
char name[80]
Definition TGX11.cxx:110
Binding & operator=(OUT(*fun)(void))

Definition at line 52 of file DeclareConverters.h.

◆ CPPYY_DECLARE_BASIC_CONVERTER

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

Definition at line 17 of file DeclareConverters.h.

◆ CPPYY_DECLARE_BASIC_CONVERTER2

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

Definition at line 32 of file DeclareConverters.h.

◆ CPPYY_DECLARE_REFCONVERTER

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

Definition at line 45 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: \
bool SetArg(PyObject*, Parameter&, CallContext* = nullptr) override; \
PyObject* FromMemory(void* address) override; \
bool ToMemory(PyObject*, void*, PyObject* = nullptr) override; \
bool HasState() override { return true; } \
\
protected: \
}
fBuffer

Definition at line 370 of file DeclareConverters.h.

Variable Documentation

◆ fBuffer

void* fBuffer = nullptr
protected

Definition at line 144 of file DeclareConverters.h.

◆ fClass

Cppyy::TCppType_t fClass
protected

Definition at line 286 of file DeclareConverters.h.

◆ fConverter

Converter* fConverter
protected

Definition at line 432 of file DeclareConverters.h.

◆ fConverters

std::vector<Converter*> fConverters
protected

Definition at line 479 of file DeclareConverters.h.

◆ fIsConst

bool fIsConst
protected

Definition at line 287 of file DeclareConverters.h.

◆ fIsFixed

bool fIsFixed
protected

Definition at line 215 of file DeclareConverters.h.

◆ fIsRef

bool fIsRef
protected

Definition at line 458 of file DeclareConverters.h.

◆ fKeepControl

bool fKeepControl
protected

Definition at line 457 of file DeclareConverters.h.

◆ fMaxSize

std::wstring::size_type fMaxSize
protected

Definition at line 145 of file DeclareConverters.h.

◆ fRetType

std::string fRetType
protected

Definition at line 413 of file DeclareConverters.h.

◆ fShape

dims_t fShape
protected

Definition at line 215 of file DeclareConverters.h.

◆ fSignature

std::string fSignature
protected

Definition at line 414 of file DeclareConverters.h.

◆ fSmartPtrType

Cppyy::TCppType_t fSmartPtrType
protected

Definition at line 455 of file DeclareConverters.h.

◆ fUnderlyingType

Cppyy::TCppType_t fUnderlyingType
protected

Definition at line 456 of file DeclareConverters.h.

◆ fValueSize

size_t fValueSize
protected

Definition at line 482 of file DeclareConverters.h.

◆ fValueType

Cppyy::TCppType_t fValueType
protected

Definition at line 481 of file DeclareConverters.h.

◆ fValueTypeName

std::string fValueTypeName
protected

Definition at line 480 of file DeclareConverters.h.