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 270 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 272 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 277 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 276 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 278 of file ShPtrFixes.hpp.

278  {
279  return get_pytype_aux((is_t_handle*)0);
280  }
static PyTypeObject const * get_pytype_aux(mpl::true_ *)
Definition: ShPtrFixes.hpp:282
boost::mpl::bool_< is_handle< T >::value > is_t_handle
Definition: ShPtrFixes.hpp:276

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

Definition at line 284 of file ShPtrFixes.hpp.

285  {
287  }
static PyTypeObject const * get(U &(*)()=0)
Definition: ShPtrFixes.hpp:251

References boost::python::detail::object_manager_get_pytype< is_const_ref >::get().

◆ 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 282 of file ShPtrFixes.hpp.

282 {return converter::object_manager_traits<T>::get_pytype();}

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 372 of file ShPtrFixes.hpp.

373  {
374  return python::upcast<PyObject>(
375  python::xincref(
376  get_managed_object(x, tag))
377  );
378  }