Scarab  v2.9.1
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
map_caster< Type, Key, Value > Struct Template Reference

#include <stl.h>

Inheritance diagram for map_caster< Type, Key, Value >:
Inheritance graph

Public Types

using key_conv = make_caster< Key >
 
using value_conv = make_caster< Value >
 
template<typename T_ >
using cast_op_type = pybind11::detail::movable_cast_op_type< T_ >
 

Public Member Functions

bool load (handle src, bool convert)
 
 operator Type * ()
 
 operator Type & ()
 
 operator Type && () &&
 

Static Public Member Functions

template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 
template<typename T_ , enable_if_t< std::is_same< Type, remove_cv_t< T_ >>::value, int > = 0>
static handle cast (T_ *src, return_value_policy policy, handle parent)
 

Static Public Attributes

static constexpr auto name = _("Dict[") + key_conv::name + _(", ") + value_conv::name + _("]")
 

Protected Attributes

Type value
 

Detailed Description

template<typename Type, typename Key, typename Value>
struct pybind11::detail::map_caster< Type, Key, Value >

Definition at line 101 of file stl.h.

Member Typedef Documentation

◆ cast_op_type

Definition at line 140 of file stl.h.

◆ key_conv

using key_conv = make_caster<Key>

Definition at line 102 of file stl.h.

◆ value_conv

using value_conv = make_caster<Value>

Definition at line 103 of file stl.h.

Member Function Documentation

◆ cast() [1/2]

static handle cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 122 of file stl.h.

◆ cast() [2/2]

static handle cast ( T_ *  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 140 of file stl.h.

◆ load()

bool load ( handle  src,
bool  convert 
)
inline

Definition at line 105 of file stl.h.

◆ operator Type &()

operator Type & ( )
inline

Definition at line 140 of file stl.h.

◆ operator Type &&()

operator Type && ( ) &&
inline

Definition at line 140 of file stl.h.

◆ operator Type *()

operator Type * ( )
inline

Definition at line 140 of file stl.h.

Member Data Documentation

◆ name

constexpr auto name = _("Dict[") + key_conv::name + _(", ") + value_conv::name + _("]")
static

Definition at line 140 of file stl.h.

◆ value

Type value
protected

Definition at line 140 of file stl.h.


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