Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
list_caster< Type, Value > 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 (Type, _("List[")+value_conv::name+_("]"))
 

Static Public Member Functions

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

Private Member Functions

template<typename T = Type, enable_if_t< std::is_same< decltype(std::declval< T >().reserve(0)), void >::value, int > = 0>
void reserve_maybe (sequence s, Type *)
 
void reserve_maybe (sequence, void *)
 

Detailed Description

template<typename Type, typename Value>
struct list_caster< Type, Value >

Definition at line 143 of file stl.h.

Member Typedef Documentation

template<typename Type, typename Value>
using list_caster< Type, Value >::value_conv = make_caster<Value>

Definition at line 144 of file stl.h.

Member Function Documentation

template<typename Type, typename Value>
template<typename T >
static handle list_caster< Type, Value >::cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 169 of file stl.h.

template<typename Type, typename Value>
bool list_caster< Type, Value >::load ( handle  src,
bool  convert 
)
inline

Definition at line 146 of file stl.h.

template<typename Type, typename Value>
list_caster< Type, Value >::PYBIND11_TYPE_CASTER ( Type  ,
_("List[")+value_conv::name+_("]")   
)
template<typename Type, typename Value>
template<typename T = Type, enable_if_t< std::is_same< decltype(std::declval< T >().reserve(0)), void >::value, int > = 0>
void list_caster< Type, Value >::reserve_maybe ( sequence  s,
Type *   
)
inlineprivate

Definition at line 164 of file stl.h.

template<typename Type, typename Value>
void list_caster< Type, Value >::reserve_maybe ( sequence  ,
void *   
)
inlineprivate

Definition at line 165 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:48