Scarab  2.8.1
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Types | Static Private Attributes | List of all members
tuple_caster< Tuple, Ts > Class Template Reference

#include <cast.h>

Inheritance diagram for tuple_caster< Tuple, Ts >:
Inheritance graph

Public Types

template<typename T >
using cast_op_type = type
 

Public Member Functions

bool load (handle src, bool convert)
 
 operator type () &
 
 operator type () &&
 

Static Public Member Functions

template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 

Static Public Attributes

static constexpr auto name = _("Tuple[") + concat(make_caster<Ts>::name...) + _("]")
 

Protected Member Functions

template<size_t... Is>
type implicit_cast (index_sequence< Is... >) &
 
template<size_t... Is>
type implicit_cast (index_sequence< Is... >) &&
 
template<size_t... Is>
bool load_impl (const sequence &seq, bool convert, index_sequence< Is... >)
 

Static Protected Member Functions

static constexpr bool load_impl (const sequence &, bool, index_sequence<>)
 
template<typename T , size_t... Is>
static handle cast_impl (T &&src, return_value_policy policy, handle parent, index_sequence< Is... >)
 

Protected Attributes

Tuple< make_caster< Ts >... > subcasters
 

Private Types

using type = Tuple< Ts... >
 
using indices = make_index_sequence< size >
 

Static Private Attributes

static constexpr auto size = sizeof...(Ts)
 

Detailed Description

template<template< typename... > class Tuple, typename... Ts>
class pybind11::detail::tuple_caster< Tuple, Ts >

Definition at line 1359 of file cast.h.

Member Typedef Documentation

◆ cast_op_type

using cast_op_type = type

Definition at line 1381 of file cast.h.

◆ indices

using indices = make_index_sequence<size>
private

Definition at line 1362 of file cast.h.

◆ type

using type = Tuple<Ts...>
private

Definition at line 1360 of file cast.h.

Member Function Documentation

◆ cast()

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

Definition at line 1375 of file cast.h.

◆ cast_impl()

static handle cast_impl ( T &&  src,
return_value_policy  policy,
handle  parent,
index_sequence< Is... >   
)
inlinestaticprotected

Definition at line 1404 of file cast.h.

◆ implicit_cast() [1/2]

type implicit_cast ( index_sequence< Is... >  ) &
inlineprotected

Definition at line 1388 of file cast.h.

◆ implicit_cast() [2/2]

type implicit_cast ( index_sequence< Is... >  ) &&
inlineprotected

Definition at line 1390 of file cast.h.

◆ load()

bool load ( handle  src,
bool  convert 
)
inline

Definition at line 1365 of file cast.h.

◆ load_impl() [1/2]

static constexpr bool load_impl ( const sequence ,
bool  ,
index_sequence<>   
)
inlinestaticprotected

Definition at line 1392 of file cast.h.

◆ load_impl() [2/2]

bool load_impl ( const sequence seq,
bool  convert,
index_sequence< Is... >   
)
inlineprotected

Definition at line 1395 of file cast.h.

◆ operator type() [1/2]

operator type ( ) &
inline

Definition at line 1383 of file cast.h.

◆ operator type() [2/2]

operator type ( ) &&
inline

Definition at line 1384 of file cast.h.

Member Data Documentation

◆ name

constexpr auto name = _("Tuple[") + concat(make_caster<Ts>::name...) + _("]")
static

Definition at line 1379 of file cast.h.

◆ size

constexpr auto size = sizeof...(Ts)
staticprivate

Definition at line 1361 of file cast.h.

◆ subcasters

Tuple<make_caster<Ts>...> subcasters
protected

Definition at line 1418 of file cast.h.


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