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 364 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 366 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

Definition at line 370 of file ShPtrFixes.hpp.

371  {
372  return get_pytype((boost::type<argument_type> *)0);
373  }

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

389  {
390  return converter::registered<U>::converters.to_python_target_type();
391  }

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

384  {
385  return converter::registered<U>::converters.to_python_target_type();
386  }

◆ operator()()

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

Definition at line 441 of file ShPtrFixes.hpp.

443 {
445 }
PyObject * shared_ptr_to_python(std::shared_ptr< T > const &x)
Definition: ShPtrFixes.hpp:243

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