Advanced Multi-Physics (AMP)
On-Line Documentation
DOFManagerFactory.h
Go to the documentation of this file.
1#ifndef included_AMP_DOFManager_DOFManagerFactory
2#define included_AMP_DOFManager_DOFManagerFactory
3
4#include "AMP/utils/FactoryStrategy.hpp"
5
6
7namespace AMP::IO {
8class RestartManager;
9}
10
11
12namespace AMP::Discretization {
13
14class DOFManager;
15
16template<class DOFMANAGER>
17std::unique_ptr<DOFMANAGER> createDOFManagerFromRestart( int64_t fid,
19{
20 return std::make_unique<DOFMANAGER>( fid, manager );
21}
22
23
26{
27public:
30 {
31 static DOFManagerFactory singletonInstance;
32 return singletonInstance;
33 }
34
36 static std::shared_ptr<DOFManager> create( int64_t fid, AMP::IO::RestartManager *manager );
37
39 template<class DOFMANAGER>
40 static void registerDOFManager( const std::string &name )
41 {
42 FactoryStrategy<DOFManager, int64_t, AMP::IO::RestartManager *>::registerFactory(
43 name, createDOFManagerFromRestart<DOFMANAGER> );
44 }
45};
46
47
48} // namespace AMP::Discretization
49
50#endif
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)



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page