netxsimdg
Loading...
Searching...
No Matches
moduleLoaderFunctions.ipp
1static ITest* p_ITest;
2template<>
3ITest& ModuleLoader::getImplementation<ITest>()
4{
5 return *p_ITest;
6}
7std::unique_ptr<ITest> (*pf_ITest)();
8template<>
9std::unique_ptr<ITest> ModuleLoader::getInstance<ITest>() const
10{
11 return (*pf_ITest)();
12}
13static Impl1 i_Impl1;
14std::unique_ptr<ITest> newImpl1()
15{
16 return std::unique_ptr<ITest>(new Impl1);
17}
18static Impl2 i_Impl2;
19std::unique_ptr<ITest> newImpl2()
20{
21 return std::unique_ptr<ITest>(new Impl2);
22}