Scarab  v2.11.1
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
pyobject_caster< type > Struct Template Reference

#include <cast.h>

Inheritance diagram for pyobject_caster< type >:
Inheritance graph

Public Types

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

Public Member Functions

template<typename T = type, enable_if_t< std::is_same< T, handle >::value, int > = 0>
bool load (handle src, bool)
 
template<typename T = type, enable_if_t< std::is_base_of< object, T >::value, int > = 0>
bool load (handle src, bool)
 
 operator type * ()
 
 operator type & ()
 
 operator type && () &&
 

Static Public Member Functions

static handle cast (const handle &src, return_value_policy, handle)
 
template<typename T_ , enable_if_t< std::is_same< type, 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 = handle_type_name<type>::name
 

Protected Attributes

type value
 

Detailed Description

template<typename type>
struct pybind11::detail::pyobject_caster< type >

Definition at line 1561 of file cast.h.

Member Typedef Documentation

◆ cast_op_type

Definition at line 1576 of file cast.h.

Member Function Documentation

◆ cast() [1/2]

static handle cast ( const handle src,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 1573 of file cast.h.

◆ cast() [2/2]

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

Definition at line 1576 of file cast.h.

◆ load() [1/2]

bool load ( handle  src,
bool   
)
inline

Definition at line 1563 of file cast.h.

◆ load() [2/2]

bool load ( handle  src,
bool   
)
inline

Definition at line 1566 of file cast.h.

◆ operator type &()

operator type & ( )
inline

Definition at line 1576 of file cast.h.

◆ operator type &&()

operator type && ( ) &&
inline

Definition at line 1576 of file cast.h.

◆ operator type *()

operator type * ( )
inline

Definition at line 1576 of file cast.h.

Member Data Documentation

◆ name

constexpr auto name = handle_type_name<type>::name
static

Definition at line 1576 of file cast.h.

◆ value

type value
protected

Definition at line 1576 of file cast.h.


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