Nektar++
Namespaces | Classes | Functions
boost::python::converter Namespace Reference

Namespaces

namespace  detail
 

Classes

struct  shared_ptr_from_python
 
struct  shared_ptr_from_python_new
 

Functions

template<class T >
PyObject * shared_ptr_to_python (std::shared_ptr< T > const &x)
 

Function Documentation

◆ shared_ptr_to_python()

template<class T >
PyObject * boost::python::converter::shared_ptr_to_python ( std::shared_ptr< T > const &  x)

Definition at line 243 of file ShPtrFixes.hpp.

244{
245 if (!x)
246 return python::detail::none();
247 else if (shared_ptr_deleter *d = std::get_deleter<shared_ptr_deleter>(x))
248 return incref(get_pointer(d->owner));
249 else
250 return converter::registered<std::shared_ptr<T> const &>::converters
251 .to_python(&x);
252}
std::vector< double > d(NPUPPER *NPUPPER)

References Nektar::UnitTests::d().

Referenced by boost::python::detail::shared_ptr_to_python_value< T >::operator()().