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 396 of file Python/Module.cpp.

Constructor & Destructor Documentation

◆ ModuleWrapConverter()

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

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

399 {
400 // An important bit of code which will register allow
401 // shared_ptr<MODTYPE> as something that boost::python recognises,
402 // otherwise modules constructed from the factory will not work from
403 // Python.
404 py::objects::class_value_wrapper<
405 std::shared_ptr<MODTYPE>,
406 py::objects::make_ptr_instance<
407 MODTYPE, py::objects::pointer_holder<std::shared_ptr<MODTYPE>,
408 MODTYPE>>>();
409 }