Nektar++
Public Member Functions | List of all members
WrapConverter< T > Struct Template Reference

A helper class that for factory-based classes allows std::shared_ptr<T> as something that boost::python recognises, otherwise modules constructed from the factory will not work from Python. More...

#include <NekPyConfig.hpp>

Public Member Functions

 WrapConverter ()
 

Detailed Description

template<typename T>
struct WrapConverter< T >

A helper class that for factory-based classes allows std::shared_ptr<T> as something that boost::python recognises, otherwise modules constructed from the factory will not work from Python.

Definition at line 284 of file NekPyConfig.hpp.

Constructor & Destructor Documentation

◆ WrapConverter()

template<typename T >
WrapConverter< T >::WrapConverter ( )
inline

Definition at line 286 of file NekPyConfig.hpp.

287 {
288 py::objects::class_value_wrapper<
289 std::shared_ptr<T>,
290 py::objects::make_ptr_instance<
291 T, py::objects::pointer_holder<std::shared_ptr<T>, T>>>();
292 }