cppyabm  1.0.17
An agent-based library to integrate C++ and Python
Public Types | Public Member Functions | Static Public 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)
 

Detailed Description

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

Definition at line 143 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 144 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 169 of file stl.h.

◆ load()

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

Definition at line 146 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

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

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