Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
array_caster< ArrayType, Value, Resizable, Size > Struct Template Reference

#include <stl.h>

Public Types

using value_conv = make_caster< Value >
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (ArrayType, _("List[")+value_conv::name+_< Resizable >(_(""), _("[")+_< Size >()+_("]"))+_("]"))
 

Static Public Member Functions

template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 

Private Member Functions

template<bool R = Resizable>
bool require_size (enable_if_t< R, size_t > size)
 
template<bool R = Resizable>
bool require_size (enable_if_t<!R, size_t > size)
 

Detailed Description

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
struct array_caster< ArrayType, Value, Resizable, Size >

Definition at line 195 of file stl.h.

Member Typedef Documentation

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
using array_caster< ArrayType, Value, Resizable, Size >::value_conv = make_caster<Value>

Definition at line 196 of file stl.h.

Member Function Documentation

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
template<typename T >
static handle array_caster< ArrayType, Value, Resizable, Size >::cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 228 of file stl.h.

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
bool array_caster< ArrayType, Value, Resizable, Size >::load ( handle  src,
bool  convert 
)
inline

Definition at line 211 of file stl.h.

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
array_caster< ArrayType, Value, Resizable, Size >::PYBIND11_TYPE_CASTER ( ArrayType  ,
_("List[")+value_conv::name+_< Resizable >(_(""), _("[")+_< Size >()+_("]"))+_("]")   
)
template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
template<bool R = Resizable>
bool array_caster< ArrayType, Value, Resizable, Size >::require_size ( enable_if_t< R, size_t size)
inlineprivate

Definition at line 200 of file stl.h.

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
template<bool R = Resizable>
bool array_caster< ArrayType, Value, Resizable, Size >::require_size ( enable_if_t<!R, size_t size)
inlineprivate

Definition at line 206 of file stl.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:44