Nektar++
|
Helper class to be used in NekFactory_Register. Stores the Python function used to call the creator function. More...
#include <NekFactory.hpp>
Public Member Functions | |
NekFactoryRegisterHelper (py::object obj) | |
~NekFactoryRegisterHelper () | |
template<class... Args> | |
std::shared_ptr< T > | create (Args... args) |
Callback to Python instantiator function (typically a class constructor). Assumes that all arguments can be converted to boost.python through converter infrastructure. More... | |
Protected Attributes | |
py::object | m_obj |
Python function that is used to construct objects. More... | |
Helper class to be used in NekFactory_Register. Stores the Python function used to call the creator function.
Definition at line 73 of file Python/BasicUtils/NekFactory.hpp.
|
inline |
Definition at line 76 of file Python/BasicUtils/NekFactory.hpp.
|
inline |
Definition at line 81 of file Python/BasicUtils/NekFactory.hpp.
References NekFactoryRegisterHelper< T >::m_obj.
|
inline |
Callback to Python instantiator function (typically a class constructor). Assumes that all arguments can be converted to boost.python through converter infrastructure.
Definition at line 91 of file Python/BasicUtils/NekFactory.hpp.
References NekFactoryRegisterHelper< T >::m_obj.
|
protected |
Python function that is used to construct objects.
Definition at line 102 of file Python/BasicUtils/NekFactory.hpp.
Referenced by NekFactoryRegisterHelper< T >::create(), and NekFactoryRegisterHelper< T >::~NekFactoryRegisterHelper().