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 = const_name("Tuple[") + concat(make_caster<Ts>::name...) + const_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 623 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 663 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 626 of file cast.h.

◆ type

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

Definition at line 624 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 641 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 647 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 699 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 670 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 674 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 629 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<>   
)
inlinestaticprotected

Definition at line 678 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 681 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 665 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 666 of file cast.h.

Member Data Documentation

◆ name

template<template< typename... > class Tuple, typename... Ts>
constexpr auto tuple_caster< Tuple, Ts >::name = const_name("Tuple[") + concat(make_caster<Ts>::name...) + const_name("]")
static

Definition at line 660 of file cast.h.

◆ size

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

Definition at line 625 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 717 of file cast.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:08