#include </builds/ipbus/ipbus-software/uhal/python/pybind11-python2/include/pybind11/cast.h>
Public Types | |
using | CharT = typename StringType::value_type |
using | CharT = typename StringType::value_type |
Public Member Functions | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (StringType, const_name(PYBIND11_STRING_NAME)) | |
bool | load (handle src, bool) |
PYBIND11_TYPE_CASTER (StringType, const_name(PYBIND11_STRING_NAME)) | |
Static Public Member Functions | |
static handle | cast (const StringType &src, return_value_policy, handle) |
static handle | cast (const StringType &src, return_value_policy, handle) |
Static Public Attributes | |
static constexpr size_t | UTF_N = 8 * sizeof(CharT) |
Private Member Functions | |
template<typename C = CharT> | |
bool | load_bytes (enable_if_t< std::is_same< C, char >::value, handle > src) |
template<typename C = CharT> | |
bool | load_bytes (enable_if_t<!std::is_same< C, char >::value, handle >) |
template<typename C = CharT> | |
bool | load_raw (enable_if_t< std::is_same< C, char >::value, handle > src) |
template<typename C = CharT> | |
bool | load_raw (enable_if_t<!std::is_same< C, char >::value, handle >) |
Static Private Member Functions | |
static handle | decode_utfN (const char *buffer, ssize_t nbytes) |
static handle | decode_utfN (const char *buffer, ssize_t nbytes) |
using string_caster< StringType, IsView >::CharT = typename StringType::value_type |
using string_caster< StringType, IsView >::CharT = typename StringType::value_type |
|
inlinestatic |
Definition at line 456 of file cast.h.
References string_caster< StringType, IsView >::decode_utfN().
|
inlinestatic |
Definition at line 438 of file cast.h.
References string_caster< StringType, IsView >::decode_utfN().
|
inlinestaticprivate |
Definition at line 469 of file cast.h.
References string_caster< StringType, IsView >::UTF_N.
Referenced by string_caster< StringType, IsView >::cast().
|
inlinestaticprivate |
Definition at line 451 of file cast.h.
References string_caster< StringType, IsView >::UTF_N.
|
inline |
Definition at line 381 of file cast.h.
References loader_life_support::add_patient(), string_caster< StringType, IsView >::load_bytes(), handle::ptr(), PYBIND11_BYTES_AS_STRING, PYBIND11_BYTES_CHECK, PYBIND11_BYTES_SIZE, PYBIND11_SILENCE_MSVC_C4127, and string_caster< StringType, IsView >::UTF_N.
|
inline |
Definition at line 385 of file cast.h.
References loader_life_support::add_patient(), string_caster< StringType, IsView >::load_raw(), handle::ptr(), PYBIND11_BYTES_AS_STRING, PYBIND11_BYTES_SIZE, and string_caster< StringType, IsView >::UTF_N.
|
inlineprivate |
Definition at line 491 of file cast.h.
References PYBIND11_BYTES_AS_STRING, PYBIND11_BYTES_CHECK, and PYBIND11_BYTES_SIZE.
Referenced by string_caster< StringType, IsView >::load().
|
inlineprivate |
|
inlineprivate |
Definition at line 473 of file cast.h.
References PYBIND11_BYTES_AS_STRING, PYBIND11_BYTES_CHECK, PYBIND11_BYTES_SIZE, and pybind11_fail().
Referenced by string_caster< StringType, IsView >::load().
|
inlineprivate |
string_caster< StringType, IsView >::PYBIND11_TYPE_CASTER | ( | StringType | , |
const_name(PYBIND11_STRING_NAME) | |||
) |
References const_name().
string_caster< StringType, IsView >::PYBIND11_TYPE_CASTER | ( | StringType | , |
const_name(PYBIND11_STRING_NAME) | |||
) |
References const_name().
|
staticconstexpr |
Definition at line 379 of file cast.h.
Referenced by string_caster< StringType, IsView >::decode_utfN(), and string_caster< StringType, IsView >::load().