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

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

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

Definition at line 117 of file PythonTypeConversions.hh.

Member Function Documentation

◆ cast()

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

Conversion part 2 (C++ -> Python): convert an Vector 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 203 of file PythonTypeConversions.hh.

◆ load()

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

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

Definition at line 131 of file PythonTypeConversions.hh.

◆ PYBIND11_TYPE_CASTER()

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

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


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