Nektar++
Public Types | Public Member Functions | Static Public Member Functions | List of all members
boost::python::detail::object_manager_to_python_value< T > Struct Template Reference

#include <ShPtrFixes.hpp>

Public Types

typedef value_arg< T >::type argument_type
 
typedef boost::mpl::bool_< is_handle< T >::value > is_t_handle
 
typedef boost::detail::indirect_traits::is_reference_to_const< T > is_t_const
 

Public Member Functions

PyObject * operator() (argument_type) const
 
PyTypeObject const * get_pytype () const
 
 BOOST_STATIC_CONSTANT (bool, uses_registry=false)
 

Static Public Member Functions

static PyTypeObject const * get_pytype_aux (mpl::true_ *)
 
static PyTypeObject const * get_pytype_aux (mpl::false_ *)
 

Detailed Description

template<class T>
struct boost::python::detail::object_manager_to_python_value< T >

Definition at line 315 of file ShPtrFixes.hpp.

Member Typedef Documentation

◆ argument_type

template<class T >
typedef value_arg<T>::type boost::python::detail::object_manager_to_python_value< T >::argument_type

Definition at line 317 of file ShPtrFixes.hpp.

◆ is_t_const

template<class T >
typedef boost::detail::indirect_traits::is_reference_to_const<T> boost::python::detail::object_manager_to_python_value< T >::is_t_const

Definition at line 322 of file ShPtrFixes.hpp.

◆ is_t_handle

template<class T >
typedef boost::mpl::bool_<is_handle<T>::value> boost::python::detail::object_manager_to_python_value< T >::is_t_handle

Definition at line 321 of file ShPtrFixes.hpp.

Member Function Documentation

◆ BOOST_STATIC_CONSTANT()

template<class T >
boost::python::detail::object_manager_to_python_value< T >::BOOST_STATIC_CONSTANT ( bool  ,
uses_registry  = false 
)

◆ get_pytype()

template<class T >
PyTypeObject const * boost::python::detail::object_manager_to_python_value< T >::get_pytype ( ) const
inline

Definition at line 323 of file ShPtrFixes.hpp.

324 {
325 return get_pytype_aux((is_t_handle *)0);
326 }
boost::mpl::bool_< is_handle< T >::value > is_t_handle
Definition: ShPtrFixes.hpp:321
static PyTypeObject const * get_pytype_aux(mpl::true_ *)
Definition: ShPtrFixes.hpp:328

References boost::python::detail::object_manager_to_python_value< T >::get_pytype_aux().

◆ get_pytype_aux() [1/2]

template<class T >
static PyTypeObject const * boost::python::detail::object_manager_to_python_value< T >::get_pytype_aux ( mpl::false_ *  )
inlinestatic

◆ get_pytype_aux() [2/2]

template<class T >
static PyTypeObject const * boost::python::detail::object_manager_to_python_value< T >::get_pytype_aux ( mpl::true_ *  )
inlinestatic

Definition at line 328 of file ShPtrFixes.hpp.

329 {
330 return converter::object_manager_traits<T>::get_pytype();
331 }

Referenced by boost::python::detail::object_manager_to_python_value< T >::get_pytype().

◆ operator()()

template<class T >
PyObject * boost::python::detail::object_manager_to_python_value< T >::operator() ( argument_type  x) const
inline

Definition at line 433 of file ShPtrFixes.hpp.

435{
436 return python::upcast<PyObject>(
437 python::xincref(get_managed_object(x, tag)));
438}