Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
type_caster< PyObject > Class Reference

#include <type_caster_pyobject_ptr.h>

Public Types

template<typename T >
using cast_op_type = PyObject *
 

Public Member Functions

bool load (handle src, bool)
 
 operator PyObject * ()
 

Static Public Member Functions

static handle cast (PyObject *src, return_value_policy policy, handle)
 
template<typename T , detail::enable_if_t<!is_same_ignoring_cvref< T, PyObject * >::value, int > = 0>
static handle cast (T &&, return_value_policy, handle)
 

Static Public Attributes

static constexpr auto name = const_name("object")
 

Private Attributes

object value
 

Detailed Description

Definition at line 14 of file type_caster_pyobject_ptr.h.

Member Typedef Documentation

◆ cast_op_type

template<typename T >
using type_caster< PyObject >::cast_op_type = PyObject *

Definition at line 52 of file type_caster_pyobject_ptr.h.

Member Function Documentation

◆ cast() [1/2]

static handle type_caster< PyObject >::cast ( PyObject *  src,
return_value_policy  policy,
handle   
)
inlinestatic

Definition at line 27 of file type_caster_pyobject_ptr.h.

◆ cast() [2/2]

template<typename T , detail::enable_if_t<!is_same_ignoring_cvref< T, PyObject * >::value, int > = 0>
static handle type_caster< PyObject >::cast ( T &&  ,
return_value_policy  ,
handle   
)
inlinestatic

Definition at line 21 of file type_caster_pyobject_ptr.h.

◆ load()

bool type_caster< PyObject >::load ( handle  src,
bool   
)
inline

Definition at line 46 of file type_caster_pyobject_ptr.h.

◆ operator PyObject *()

type_caster< PyObject >::operator PyObject * ( )
inlineexplicit

Definition at line 54 of file type_caster_pyobject_ptr.h.

Member Data Documentation

◆ name

constexpr auto type_caster< PyObject >::name = const_name("object")
staticconstexpr

Definition at line 16 of file type_caster_pyobject_ptr.h.

◆ value

object type_caster< PyObject >::value
private

Definition at line 57 of file type_caster_pyobject_ptr.h.


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


gtsam
Author(s):
autogenerated on Tue Jun 25 2024 03:08:22