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, const_name< Resizable >(const_name(""), const_name("Annotated["))+const_name("list[")+value_conv::name+const_name("]")+const_name< Resizable >(const_name(""), const_name(", FixedSize(")+const_name< Size >()+const_name(")]")))
 

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 224 of file stl.h.

Member Typedef Documentation

◆ value_conv

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 225 of file stl.h.

Member Function Documentation

◆ cast()

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 261 of file stl.h.

◆ load()

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 241 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename ArrayType , typename Value , bool Resizable, size_t Size = 0>
array_caster< ArrayType, Value, Resizable, Size >::PYBIND11_TYPE_CASTER ( ArrayType  ,
const_name< Resizable >  const_name(""), const_name("Annotated["))+const_name("list[")+value_conv::name+const_name("]")+const_name< Resizable >(const_name(""), const_name(", FixedSize(")+const_name< Size >()+const_name(")]") 
)

◆ require_size() [1/2]

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 229 of file stl.h.

◆ require_size() [2/2]

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 236 of file stl.h.


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


gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:39