Public Types | Public Member Functions | Static Public Member Functions | List of all members
map_caster< Type, Key, Value > Struct Template Reference

#include <stl.h>

Public Types

using key_conv = make_caster< Key >
 
using value_conv = make_caster< Value >
 

Public Member Functions

bool load (handle src, bool convert)
 
 PYBIND11_TYPE_CASTER (Type, const_name("Dict[")+key_conv::name+const_name(", ")+value_conv::name+const_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, typename Value>
struct map_caster< Type, Key, Value >

Definition at line 93 of file stl.h.

Member Typedef Documentation

◆ key_conv

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

Definition at line 94 of file stl.h.

◆ value_conv

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

Definition at line 95 of file stl.h.

Member Function Documentation

◆ cast()

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

Definition at line 115 of file stl.h.

◆ load()

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

Definition at line 97 of file stl.h.

◆ PYBIND11_TYPE_CASTER()

template<typename Type, typename Key, typename Value>
map_caster< Type, Key, Value >::PYBIND11_TYPE_CASTER ( Type  ,
const_name("Dict[")+key_conv::name+const_name(", ")+value_conv::name+const_name("]")   
)

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


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