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

void reserve_maybe (const sequence &, void *)
 
template<typename T = Type, enable_if_t< has_reserve_method< T >::value, int > = 0>
void reserve_maybe (const sequence &s, Type *)
 

Detailed Description

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

Definition at line 165 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 166 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 194 of file stl.h.

◆ load()

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

Definition at line 168 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 >
void list_caster< Type, Value >::reserve_maybe ( const sequence ,
void *   
)
inlineprivate

Definition at line 190 of file stl.h.

◆ reserve_maybe() [2/2]

template<typename Type , typename Value >
template<typename T = Type, enable_if_t< has_reserve_method< T >::value, int > = 0>
void list_caster< Type, Value >::reserve_maybe ( const sequence s,
Type  
)
inlineprivate

Definition at line 187 of file stl.h.


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


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:36