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, const_name("List[")+value_conv::name+const_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 (const sequence &s, Type *)
 
void reserve_maybe (const sequence &, void *)
 

Detailed Description

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

Definition at line 142 of file stl.h.

Member Typedef Documentation

◆ value_conv

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

Definition at line 143 of file stl.h.

Member Function Documentation

◆ cast()

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

◆ load()

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

Definition at line 145 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type, typename Value>
list_caster< Type, Value >::PYBIND11_TYPE_CASTER ( Type  ,
const_name("List[")+value_conv::name+const_name("]")   
)

◆ reserve_maybe() [1/2]

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 ( const sequence s,
Type *   
)
inlineprivate

Definition at line 166 of file stl.h.

◆ reserve_maybe() [2/2]

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

Definition at line 169 of file stl.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:02