Scarab  2.8.1
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
set_caster< Type, Key > Struct Template Reference

#include <stl.h>

Inheritance diagram for set_caster< Type, Key >:
Inheritance graph

Public Types

using type = Type
 
using key_conv = make_caster< Key >
 
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 = _("Set[") + key_conv::name + _("]")
 

Protected Attributes

type value
 

Detailed Description

template<typename Type, typename Key>
struct pybind11::detail::set_caster< Type, Key >

Definition at line 67 of file stl.h.

Member Typedef Documentation

◆ cast_op_type

Definition at line 98 of file stl.h.

◆ key_conv

using key_conv = make_caster<Key>

Definition at line 69 of file stl.h.

◆ type

using type = Type

Definition at line 68 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 86 of file stl.h.

◆ cast() [2/2]

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

Definition at line 98 of file stl.h.

◆ load()

bool load ( handle  src,
bool  convert 
)
inline

Definition at line 71 of file stl.h.

◆ operator type &()

operator type & ( )
inline

Definition at line 98 of file stl.h.

◆ operator type &&()

operator type && ( ) &&
inline

Definition at line 98 of file stl.h.

◆ operator type *()

operator type * ( )
inline

Definition at line 98 of file stl.h.

Member Data Documentation

◆ name

constexpr auto name = _("Set[") + key_conv::name + _("]")
static

Definition at line 98 of file stl.h.

◆ value

type value
protected

Definition at line 98 of file stl.h.


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