1#ifndef included_AMP_DOFManager_DOFManagerFactory
2#define included_AMP_DOFManager_DOFManagerFactory
4#include "AMP/utils/FactoryStrategy.hpp"
16template<
class DOFMANAGER>
20 return std::make_unique<DOFMANAGER>( fid, manager );
32 return singletonInstance;
39 template<
class DOFMANAGER>
42 FactoryStrategy<DOFManager, int64_t, AMP::IO::RestartManager *>::registerFactory(
43 name, createDOFManagerFromRestart<DOFMANAGER> );
DOFManager factory class.
static std::shared_ptr< DOFManager > create(int64_t fid, AMP::IO::RestartManager *manager)
Create the vector from the restart file.
static void registerDOFManager(const std::string &name)
Register a vector with the factory.
static DOFManagerFactory & getFactory()
get a singleton instance of the factory
Class to manage reading/writing restart data.
std::unique_ptr< DOFMANAGER > createDOFManagerFromRestart(int64_t fid, AMP::IO::RestartManager *manager)