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

#include <ShPtrFixes.hpp>

Public Types

typedef value_arg< T >::type argument_type
 

Public Member Functions

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

Private Member Functions

template<class U >
PyTypeObject const * get_pytype (boost::type< shared_ptr< U > & > *) const
 
template<class U >
PyTypeObject const * get_pytype (boost::type< const shared_ptr< U > & > *) const
 

Detailed Description

template<class T>
struct boost::python::detail::shared_ptr_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::shared_ptr_to_python_value< T >::argument_type

Definition at line 317 of file ShPtrFixes.hpp.

Member Function Documentation

◆ BOOST_STATIC_CONSTANT()

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

◆ get_pytype() [1/3]

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

◆ get_pytype() [2/3]

template<class T >
template<class U >
PyTypeObject const* boost::python::detail::shared_ptr_to_python_value< T >::get_pytype ( boost::type< const shared_ptr< U > & > *  ) const
inlineprivate

Definition at line 332 of file ShPtrFixes.hpp.

332 {return converter::registered<U>::converters.to_python_target_type();}

◆ get_pytype() [3/3]

template<class T >
template<class U >
PyTypeObject const* boost::python::detail::shared_ptr_to_python_value< T >::get_pytype ( boost::type< shared_ptr< U > & > *  ) const
inlineprivate

Definition at line 330 of file ShPtrFixes.hpp.

330 {return converter::registered<U>::converters.to_python_target_type();}

◆ operator()()

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

Definition at line 381 of file ShPtrFixes.hpp.

382  {
384  }
PyObject * shared_ptr_to_python(std::shared_ptr< T > const &x)
Definition: ShPtrFixes.hpp:201

References boost::python::converter::shared_ptr_to_python().