netxsimdg
Loading...
Searching...
No Matches
moduleLoaderFunctions.ipp
1static Nextsim::IFreezingPoint* p_IFreezingPoint;
2template<>
3Nextsim::IFreezingPoint& ModuleLoader::getImplementation()
4{
5 return *p_IFreezingPoint;
6}
7std::unique_ptr<Nextsim::IFreezingPoint> (*pf_IFreezingPoint)();
8template<>
9std::unique_ptr<Nextsim::IFreezingPoint> ModuleLoader::getInstance() const
10{
11 return (*pf_IFreezingPoint)();
12}
13static Nextsim::LinearFreezing i_LinearFreezing;
14std::unique_ptr<Nextsim::IFreezingPoint> newLinearFreezing()
15{
16 return std::unique_ptr<Nextsim::LinearFreezing>(new Nextsim::LinearFreezing);
17}
18static Nextsim::UnescoFreezing i_UnescoFreezing;
19std::unique_ptr<Nextsim::IFreezingPoint> newUnescoFreezing()
20{
21 return std::unique_ptr<Nextsim::UnescoFreezing>(new Nextsim::UnescoFreezing);
22}
The interface class for calculation of the freezing point of seawater.
The implementation class of the linear model of seawater freezing point.
The implementation class of the UNESCO model of the freezing point of.