MueLu  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MueLu_FactoryAcceptor.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // MueLu: A package for multigrid based preconditioning
4 //
5 // Copyright 2012 NTESS and the MueLu contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef MUELU_FACTORYACCEPTOR_HPP
11 #define MUELU_FACTORYACCEPTOR_HPP
12 
13 #include <string>
14 
15 #include "Teuchos_RCP.hpp"
16 #include "MueLu_ConfigDefs.hpp"
17 #include "MueLu_FactoryBase.hpp"
18 
19 namespace MueLu {
20 
22  public:
23  virtual ~FactoryAcceptor() {}
24 
26 
29  virtual void SetFactory(const std::string& varName, const RCP<const FactoryBase>& factory) = 0;
30 
31  virtual const RCP<const FactoryBase> GetFactory(const std::string& varName) const = 0;
32 
33  // SetParameterList(...);
34 
35  // GetParameterList(...);
36 
38 
39 }; // class FactoryAcceptor
40 
41 } // namespace MueLu
42 
43 #define MUELU_FACTORYACCEPTOR_SHORT
44 #endif // ifndef MUELU_FACTORYACCEPTOR_HPP
virtual void SetFactory(const std::string &varName, const RCP< const FactoryBase > &factory)=0
Configuration.
virtual const RCP< const FactoryBase > GetFactory(const std::string &varName) const =0