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

Constructor & Destructor Documentation

◆ ModuleWrapConverter()

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

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

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