Developer Documentation
pybind11::detail::type_caster< Matrix4x4 > Struct Template Reference

Public Member Functions

 PYBIND11_TYPE_CASTER (Matrix4x4, _("Matrix4x4"))
 
bool load (handle src, bool convert)
 

Static Public Member Functions

static handle cast (Matrix4x4 src, return_value_policy, handle parent)
 

Detailed Description

template<>
struct pybind11::detail::type_caster< Matrix4x4 >

Definition at line 230 of file PythonTypeConversions.hh.

Member Function Documentation

◆ cast()

static handle pybind11::detail::type_caster< Matrix4x4 >::cast ( Matrix4x4  src,
return_value_policy  ,
handle  parent 
)
inlinestatic

Conversion part 2 (C++ -> Python): convert an Matrix4x4 instance into a Python object. The second and third arguments are used to indicate the return value policy and parent object (for return_value_policy::reference_internal) and are generally ignored by implicit casters.

Definition at line 354 of file PythonTypeConversions.hh.

◆ load()

bool pybind11::detail::type_caster< Matrix4x4 >::load ( handle  src,
bool  convert 
)
inline

Conversion part 1 (Python->C++): convert a PyObject into a Matrix4x4 instance or return false upon failure. The second argument indicates whether implicit conversions should be applied.

Definition at line 244 of file PythonTypeConversions.hh.

◆ PYBIND11_TYPE_CASTER()

pybind11::detail::type_caster< Matrix4x4 >::PYBIND11_TYPE_CASTER ( Matrix4x4  ,
_("Matrix4x4")   
)

This macro establishes the name 'str' in function signatures and declares a local variable 'value' of type Matrix4x4


The documentation for this struct was generated from the following file: