Scarab  v2.9.0
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | List of all members
array_caster< ArrayType, Value, Resizable, Size > Struct Template Reference

#include <stl.h>

Inheritance diagram for array_caster< ArrayType, Value, Resizable, Size >:
Inheritance graph

Public Types

using value_conv = make_caster< Value >
 
template<typename T_ >
using cast_op_type = pybind11::detail::movable_cast_op_type< T_ >
 

Public Member Functions

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

Static Public Member Functions

template<typename T >
static handle cast (T &&src, return_value_policy policy, handle parent)
 
template<typename T_ , enable_if_t< std::is_same< ArrayType, remove_cv_t< T_ >>::value, int > = 0>
static handle cast (T_ *src, return_value_policy policy, handle parent)
 

Static Public Attributes

static constexpr auto name = _("List[") + value_conv::name + _<Resizable>(_(""), _("[") + _<Size>() + _("]")) + _("]")
 

Protected Attributes

ArrayType value
 

Private Member Functions

template<bool R = Resizable>
bool require_size (enable_if_t< R, size_t > size)
 
template<bool R = Resizable>
bool require_size (enable_if_t<!R, size_t > size)
 

Detailed Description

template<typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
struct pybind11::detail::array_caster< ArrayType, Value, Resizable, Size >

Definition at line 195 of file stl.h.

Member Typedef Documentation

◆ cast_op_type

Definition at line 240 of file stl.h.

◆ value_conv

using value_conv = make_caster<Value>

Definition at line 196 of file stl.h.

Member Function Documentation

◆ cast() [1/2]

static handle cast ( T &&  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 228 of file stl.h.

◆ cast() [2/2]

static handle cast ( T_ *  src,
return_value_policy  policy,
handle  parent 
)
inlinestatic

Definition at line 240 of file stl.h.

◆ load()

bool load ( handle  src,
bool  convert 
)
inline

Definition at line 211 of file stl.h.

◆ operator ArrayType &()

operator ArrayType & ( )
inline

Definition at line 240 of file stl.h.

◆ operator ArrayType &&()

operator ArrayType && ( ) &&
inline

Definition at line 240 of file stl.h.

◆ operator ArrayType *()

operator ArrayType * ( )
inline

Definition at line 240 of file stl.h.

◆ require_size() [1/2]

bool require_size ( enable_if_t< R, size_t size)
inlineprivate

Definition at line 200 of file stl.h.

◆ require_size() [2/2]

bool require_size ( enable_if_t<!R, size_t size)
inlineprivate

Definition at line 206 of file stl.h.

Member Data Documentation

◆ name

constexpr auto name = _("List[") + value_conv::name + _<Resizable>(_(""), _("[") + _<Size>() + _("]")) + _("]")
static

Definition at line 240 of file stl.h.

◆ value

ArrayType value
protected

Definition at line 240 of file stl.h.


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