1#ifndef included_AMP_Vector_VectorFactory
2#define included_AMP_Vector_VectorFactory
4#include "AMP/utils/FactoryStrategy.hpp"
19 return std::make_unique<VECTOR>( fid, manager );
31 return singletonInstance;
38 template<
class VECTOR>
41 FactoryStrategy<Vector, int64_t, AMP::IO::RestartManager *>::registerFactory(
42 name, createVectorFromRestart<VECTOR> );
Class to manage reading/writing restart data.
virtual std::string name() const =0
static void registerVector(const std::string &name)
Register a vector with the factory.
static std::shared_ptr< Vector > create(int64_t fid, AMP::IO::RestartManager *manager)
Create the vector from the restart file.
static VectorFactory & getFactory()
get a singleton instance of the factory
std::unique_ptr< VECTOR > createVectorFromRestart(int64_t fid, AMP::IO::RestartManager *manager)