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
set_caster< Type, Key > Struct Template Reference

#include <stl.h>

Public Types

using type = Type
 
using key_conv = make_caster< Key >
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (type, _("Set[")+key_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 Key>
struct set_caster< Type, Key >

Definition at line 67 of file stl.h.

Member Typedef Documentation

◆ key_conv

template<typename Type , typename Key >
using set_caster< Type, Key >::key_conv = make_caster<Key>

Definition at line 69 of file stl.h.

◆ type

template<typename Type , typename Key >
using set_caster< Type, Key >::type = Type

Definition at line 68 of file stl.h.

Member Function Documentation

◆ cast()

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

Definition at line 86 of file stl.h.

◆ load()

template<typename Type , typename Key >
bool set_caster< Type, Key >::load ( handle  src,
bool  convert 
)
inline

Definition at line 71 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type , typename Key >
set_caster< Type, Key >::PYBIND11_TYPE_CASTER ( type  ,
_("Set[")+key_conv::name+_("]")   
)

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