Nektar++
|
#include <FieldUtils/Module.h>
#include <LibUtilities/Python/BasicUtils/NekFactory.hpp>
#include <LibUtilities/Python/BasicUtils/SharedArray.hpp>
#include <LibUtilities/Python/NekPyConfig.hpp>
#include <boost/program_options.hpp>
Go to the source code of this file.
Classes | |
struct | ModuleWrap< MODTYPE > |
Module wrapper to handle virtual function calls in Module and its subclasses as defined by the template parameter. More... | |
struct | ModulePublic< MODTYPE > |
struct | ModuleTypeProxy< MODTYPE > |
struct | ModuleTypeProxy< InputModule > |
struct | ModuleTypeProxy< ProcessModule > |
struct | ModuleTypeProxy< OutputModule > |
struct | PythonModuleClass< MODTYPE > |
Functions | |
void | Module_Process (ModuleSharedPtr m) |
template<typename T > | |
T | Module_GetConfig (std::shared_ptr< Module > mod, const std::string &key) |
void | Module_GetVtkGrid (std::shared_ptr< Module > mod) |
template<typename MODTYPE > | |
ModuleSharedPtr | Module_Create (py::args args, const py::kwargs &kwargs) |
Lightweight wrapper for Module factory creation function. More... | |
void | Module_RegisterConfig (std::shared_ptr< Module > mod, std::string const &key, std::string const &value) |
Lightweight wrapper for FieldUtils::Module::RegisterConfig. More... | |
template<typename MODTYPE > | |
void | ModuleWrap_AddConfigOption (std::shared_ptr< ModuleWrap< MODTYPE > > mod, std::string const &key, std::string const &defValue, std::string const &desc, bool isBool) |
void | export_Module (py::module &m) |
void export_Module | ( | py::module & | m | ) |
Definition at line 384 of file Python/Module.cpp.
References Nektar::FieldUtils::GetModuleFactory(), Module_GetVtkGrid(), Module_Process(), Module_RegisterConfig(), Nektar::FieldUtils::ModuleTypeMap, and NEKPY_WRAP_ENUM_STRING.
Referenced by PYBIND11_MODULE().
ModuleSharedPtr Module_Create | ( | py::args | args, |
const py::kwargs & | kwargs | ||
) |
Lightweight wrapper for Module factory creation function.
modType | Module type (input/process/output). |
modName | Module name (typically filename extension). |
field | Field that will be passed between modules. |
MODTYPE | Subclass of Module (e.g #InputModule, #OutputModule) |
Definition at line 248 of file Python/Module.cpp.
References Nektar::LibUtilities::NekFactory< tKey, tBase, tParam >::CreateInstance(), Nektar::FieldUtils::eInputModule, Nektar::FieldUtils::eOutputModule, Nektar::FieldUtils::eProcessModule, FilterPython_Function::field, Nektar::FieldUtils::GetModuleFactory(), and Nektar::FieldUtils::ModuleTypeMap.
T Module_GetConfig | ( | std::shared_ptr< Module > | mod, |
const std::string & | key | ||
) |
Definition at line 187 of file Python/Module.cpp.
void Module_GetVtkGrid | ( | std::shared_ptr< Module > | mod | ) |
void Module_Process | ( | ModuleSharedPtr | m | ) |
Definition at line 161 of file Python/Module.cpp.
References Nektar::FieldUtils::eCreateGraph, and Nektar::FieldUtils::eOutput.
Referenced by export_Module().
void Module_RegisterConfig | ( | std::shared_ptr< Module > | mod, |
std::string const & | key, | ||
std::string const & | value | ||
) |
Lightweight wrapper for FieldUtils::Module::RegisterConfig.
mod | Module to call |
key | Configuration key. |
value | Optional value (some configuration options are boolean). |
Definition at line 348 of file Python/Module.cpp.
Referenced by export_Module().
void ModuleWrap_AddConfigOption | ( | std::shared_ptr< ModuleWrap< MODTYPE > > | mod, |
std::string const & | key, | ||
std::string const & | defValue, | ||
std::string const & | desc, | ||
bool | isBool | ||
) |
Definition at line 355 of file Python/Module.cpp.