Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > > Struct Template Reference

#include <cast.h>

Public Types

template<typename _T >
using cast_op_type = pybind11::detail::cast_op_type< _T >
 
using StringCaster = make_caster< StringType >
 
using StringType = std::basic_string< CharT >
 

Public Member Functions

bool load (handle src, bool convert)
 
 operator CharT & ()
 
 operator CharT * ()
 

Static Public Member Functions

static handle cast (const CharT *src, return_value_policy policy, handle parent)
 
static handle cast (CharT src, return_value_policy policy, handle parent)
 

Public Attributes

bool none = false
 
CharT one_char = 0
 
StringCaster str_caster
 

Static Public Attributes

static constexpr auto name = const_name(PYBIND11_STRING_NAME)
 

Detailed Description

template<typename CharT>
struct type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >

Definition at line 515 of file cast.h.

Member Typedef Documentation

◆ cast_op_type

template<typename CharT >
template<typename _T >
using type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::cast_op_type = pybind11::detail::cast_op_type<_T>

Definition at line 618 of file cast.h.

◆ StringCaster

template<typename CharT >
using type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::StringCaster = make_caster<StringType>

Definition at line 517 of file cast.h.

◆ StringType

template<typename CharT >
using type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::StringType = std::basic_string<CharT>

Definition at line 516 of file cast.h.

Member Function Documentation

◆ cast() [1/2]

template<typename CharT >
static handle type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::cast ( const CharT *  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 538 of file cast.h.

◆ cast() [2/2]

template<typename CharT >
static handle type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::cast ( CharT  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 545 of file cast.h.

◆ load()

template<typename CharT >
bool type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::load ( handle  src,
bool  convert 
)
inline

Definition at line 523 of file cast.h.

◆ operator CharT &()

template<typename CharT >
type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::operator CharT & ( )
inlineexplicit

Definition at line 559 of file cast.h.

◆ operator CharT *()

template<typename CharT >
type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::operator CharT * ( )
inlineexplicit

Definition at line 556 of file cast.h.

Member Data Documentation

◆ name

template<typename CharT >
constexpr auto type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::name = const_name(PYBIND11_STRING_NAME)
static

Definition at line 616 of file cast.h.

◆ none

template<typename CharT >
bool type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::none = false

Definition at line 519 of file cast.h.

◆ one_char

template<typename CharT >
CharT type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::one_char = 0

Definition at line 520 of file cast.h.

◆ str_caster

template<typename CharT >
StringCaster type_caster< CharT, enable_if_t< is_std_char_type< CharT >::value > >::str_caster

Definition at line 518 of file cast.h.


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


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