![]() |
MoCSI API Reference
|
Class that creates all modules and allows access to the module pointers in static contexts. This enables inter-module access to public functions and allows for complex inter-module behaviours and efficient data sharing. More...
#include <StaticModuleContainer.h>

Public Member Functions | |
| StaticModuleContainer (SimulationClassBase< T > *sim_ptr) | |
| Construct a new Static Module Container object. Also creates all modules (all selected modules as soon as the branch is merged). | |
Static Public Member Functions | |
| static bool | isInitialized () |
| Getter function for the m_modules_created boolean. Is set to true, if this module has been created (once) and thus the module lists actually filled. | |
| static std::vector< std::shared_ptr< GenericManagingModule< T > > > & | getAllSelectedManagingModules () |
| Get all selected managing modules (static). | |
| static std::vector< std::shared_ptr< GenericSubmodule< T > > > & | getAllSelectedSubmodules () |
| Get all selected submodules (static). | |
| static std::shared_ptr< GenericManagingModule< T > > | getSelectedManagingModule (const std::string &key) |
| Get a specified managing module. | |
| static std::shared_ptr< GenericSubmodule< T > > | getSelectedSubmodule (const std::string &key) |
| Get the specified submodule. | |
Class that creates all modules and allows access to the module pointers in static contexts. This enables inter-module access to public functions and allows for complex inter-module behaviours and efficient data sharing.
| T | Numeric type used in the simulation (e.g., float, double) |
|
inline |
Construct a new Static Module Container object. Also creates all modules (all selected modules as soon as the branch is merged).
| sim_ptr | The pointer to the simulation class. |
|
inlinestatic |
Get all selected managing modules (static).
|
inlinestatic |
Get all selected submodules (static).
|
inlinestatic |
Get a specified managing module.
| key | The name of the managing module to get. |
|
inlinestatic |
Get the specified submodule.
| key | The name of the submanaging to get. |
Getter function for the m_modules_created boolean. Is set to true, if this module has been created (once) and thus the module lists actually filled.