netxsimdg
Loading...
Searching...
No Matches
DynamicsModuleForPDtest.cpp
Go to the documentation of this file.
1
9
11
12#include <string>
13
14namespace Module {
15const std::string DUMMYDYNAMICS = "Nextsim::DummyDynamics";
16
17template <>
18Module<Nextsim::IDynamics>::map Module<Nextsim::IDynamics>::functionMap = {
19 { DUMMYDYNAMICS, newImpl<Nextsim::IDynamics, Nextsim::DummyDynamics> },
20};
21
22template <>
23Module<Nextsim::IDynamics>::fn Module<Nextsim::IDynamics>::spf = functionMap.at(DUMMYDYNAMICS);
24template <>
25std::unique_ptr<Nextsim::IDynamics> Module<Nextsim::IDynamics>::staticInstance
26 = std::move(newImpl<Nextsim::IDynamics, Nextsim::DummyDynamics>());
27
28template <> std::string Module<Nextsim::IDynamics>::moduleName() { return "Nextsim::IDynamics"; }
29
30template <> HelpMap& getHelpRecursive<Nextsim::IDynamics>(HelpMap& map, bool getAll) { return map; }
31template <> Nextsim::IDynamics& getImplementation<Nextsim::IDynamics>()
32{
33 return getImplTemplate<Nextsim::IDynamics, DynamicsModule>();
34}
35template <> void setImplementation<Nextsim::IDynamics>(const std::string& implName)
36{
37 setImplTemplate<DynamicsModule>(implName);
38}
39template <> std::unique_ptr<Nextsim::IDynamics> getInstance()
40{
41 return getInstTemplate<Nextsim::IDynamics, DynamicsModule>();
42}
43DynamicsModule::Constructor DynamicsModule::ctor;
44DynamicsModule::Constructor::Constructor()
45{
46 addToConfiguredModules<Nextsim::IDynamics, DynamicsModule>();
47}
48
49} /* namespace Module */