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