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>

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)
 
template<typename T >
static handle cast (T *src, return_value_policy policy, handle parent)
 

Static Public Attributes

static constexpr auto 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

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

Protected Attributes

Tuple< make_caster< Ts >... > subcasters
 

Private Types

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

Static Private Attributes

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

Detailed Description

template<template< typename... > class Tuple, typename... Ts>
class tuple_caster< Tuple, Ts >

Definition at line 639 of file cast.h.

Member Typedef Documentation

◆ cast_op_type

template<template< typename... > class Tuple, typename... Ts>
template<typename T >
using tuple_caster< Tuple, Ts >::cast_op_type = type

Definition at line 680 of file cast.h.

◆ indices

template<template< typename... > class Tuple, typename... Ts>
using tuple_caster< Tuple, Ts >::indices = make_index_sequence<size>
private

Definition at line 642 of file cast.h.

◆ type

template<template< typename... > class Tuple, typename... Ts>
using tuple_caster< Tuple, Ts >::type = Tuple<Ts...>
private

Definition at line 640 of file cast.h.

Member Function Documentation

◆ cast() [1/2]

template<template< typename... > class Tuple, typename... Ts>
template<typename T >
static handle tuple_caster< Tuple, Ts >::cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 657 of file cast.h.

◆ cast() [2/2]

template<template< typename... > class Tuple, typename... Ts>
template<typename T >
static handle tuple_caster< Tuple, Ts >::cast ( T src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 663 of file cast.h.

◆ cast_impl()

template<template< typename... > class Tuple, typename... Ts>
template<typename T , size_t... Is>
static handle tuple_caster< Tuple, Ts >::cast_impl ( T &&  src,
return_value_policy  policy,
handle  parent,
index_sequence< Is... >   
)
inlinestaticprotected

Definition at line 716 of file cast.h.

◆ implicit_cast() [1/2]

template<template< typename... > class Tuple, typename... Ts>
template<size_t... Is>
type tuple_caster< Tuple, Ts >::implicit_cast ( index_sequence< Is... >  ) &
inlineprotected

Definition at line 687 of file cast.h.

◆ implicit_cast() [2/2]

template<template< typename... > class Tuple, typename... Ts>
template<size_t... Is>
type tuple_caster< Tuple, Ts >::implicit_cast ( index_sequence< Is... >  ) &&
inlineprotected

Definition at line 691 of file cast.h.

◆ load()

template<template< typename... > class Tuple, typename... Ts>
bool tuple_caster< Tuple, Ts >::load ( handle  src,
bool  convert 
)
inline

Definition at line 645 of file cast.h.

◆ load_impl() [1/2]

template<template< typename... > class Tuple, typename... Ts>
static constexpr bool tuple_caster< Tuple, Ts >::load_impl ( const sequence ,
bool  ,
index_sequence<>   
)
inlinestaticconstexprprotected

Definition at line 695 of file cast.h.

◆ load_impl() [2/2]

template<template< typename... > class Tuple, typename... Ts>
template<size_t... Is>
bool tuple_caster< Tuple, Ts >::load_impl ( const sequence seq,
bool  convert,
index_sequence< Is... >   
)
inlineprotected

Definition at line 698 of file cast.h.

◆ operator type() [1/2]

template<template< typename... > class Tuple, typename... Ts>
tuple_caster< Tuple, Ts >::operator type ( ) &
inlineexplicit

Definition at line 682 of file cast.h.

◆ operator type() [2/2]

template<template< typename... > class Tuple, typename... Ts>
tuple_caster< Tuple, Ts >::operator type ( ) &&
inlineexplicit

Definition at line 683 of file cast.h.

Member Data Documentation

◆ name

template<template< typename... > class Tuple, typename... Ts>
constexpr auto tuple_caster< Tuple, Ts >::name
staticconstexpr
Initial value:

Definition at line 675 of file cast.h.

◆ size

template<template< typename... > class Tuple, typename... Ts>
constexpr auto tuple_caster< Tuple, Ts >::size = sizeof...(Ts)
staticconstexprprivate

Definition at line 641 of file cast.h.

◆ subcasters

template<template< typename... > class Tuple, typename... Ts>
Tuple<make_caster<Ts>...> tuple_caster< Tuple, Ts >::subcasters
protected

Definition at line 734 of file cast.h.


The documentation for this class was generated from the following file:
const_name
constexpr descr< N - 1 > const_name(char const (&text)[N])
Definition: descr.h:60
type_caster
Definition: cast.h:38
concat
constexpr descr< 0 > concat()
Definition: descr.h:139


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:10:09