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 = _("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

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 1405 of file cast.h.

Member Typedef Documentation

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

Definition at line 1438 of file cast.h.

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

Definition at line 1408 of file cast.h.

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

Definition at line 1406 of file cast.h.

Member Function Documentation

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 1421 of file cast.h.

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 1427 of file cast.h.

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 1466 of file cast.h.

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 1445 of file cast.h.

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 1447 of file cast.h.

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

Definition at line 1411 of file cast.h.

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 1449 of file cast.h.

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 1452 of file cast.h.

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

Definition at line 1440 of file cast.h.

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

Definition at line 1441 of file cast.h.

Member Data Documentation

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

Definition at line 1436 of file cast.h.

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

Definition at line 1407 of file cast.h.

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

Definition at line 1480 of file cast.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:54