μHAL (v2.8.17)
Part of the IPbus software repository
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
map_caster< Type, Key, Value > Struct Template Reference

#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/stl.h>

Inheritance diagram for map_caster< Type, Key, Value >:
[legend]

Public Types

using key_conv = make_caster< Key >
 
using value_conv = make_caster< Value >
 
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("]"))
 
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)
 
template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 

Private Member Functions

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

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 [1/2]

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.

◆ key_conv [2/2]

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

Definition at line 108 of file stl.h.

◆ value_conv [1/2]

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.

◆ value_conv [2/2]

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

Definition at line 109 of file stl.h.

Member Function Documentation

◆ cast() [1/2]

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

◆ cast() [2/2]

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

◆ load() [1/2]

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.

References type_caster_generic::load().

◆ load() [2/2]

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

◆ PYBIND11_TYPE_CASTER() [1/2]

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("]")   
)

References const_name().

◆ PYBIND11_TYPE_CASTER() [2/2]

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("]")   
)

References const_name().

◆ reserve_maybe() [1/2]

template<typename Type , typename Key , typename Value >
void map_caster< Type, Key, Value >::reserve_maybe ( const dict ,
void *   
)
inlineprivate

Definition at line 116 of file stl.h.

◆ reserve_maybe() [2/2]

template<typename Type , typename Key , typename Value >
template<typename T = Type, enable_if_t< has_reserve_method< T >::value, int > = 0>
void map_caster< Type, Key, Value >::reserve_maybe ( const dict d,
Type *   
)
inlineprivate

Definition at line 113 of file stl.h.

References dict::size().

Referenced by map_caster< Type, Key, Value >::load().


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