Nektar++
Public Member Functions | List of all members
ModuleWrapConverter< MODTYPE > Struct Template Reference

Public Member Functions

 ModuleWrapConverter ()
 

Detailed Description

template<typename MODTYPE>
struct ModuleWrapConverter< MODTYPE >

Definition at line 367 of file Python/Module.cpp.

Constructor & Destructor Documentation

◆ ModuleWrapConverter()

template<typename MODTYPE >
ModuleWrapConverter< MODTYPE >::ModuleWrapConverter ( )
inline

Definition at line 369 of file Python/Module.cpp.

370 {
371 // An important bit of code which will register allow
372 // shared_ptr<MODTYPE> as something that boost::python recognises,
373 // otherwise modules constructed from the factory will not work from
374 // Python.
375 py::objects::class_value_wrapper<
376 std::shared_ptr<MODTYPE>,
377 py::objects::make_ptr_instance<
378 MODTYPE, py::objects::pointer_holder<std::shared_ptr<MODTYPE>,
379 MODTYPE>>>();
380 }