Debian Codegraph @

packages/muelu/src/MueCentral/MueLu_FactoryAcceptor.hpp

raw
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
21 class FactoryAcceptor {
22 public:
23 virtual ~FactoryAcceptor() {}
24
25 //@{
26 //! Configuration
27
28 //! SetFactory is for expert users only. To change configuration of the preconditioner, use a factory manager.
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
37 //@}
38
39 }; // class FactoryAcceptor
40
41 } // namespace MueLu
42
43 #define MUELU_FACTORYACCEPTOR_SHORT
44 #endif // ifndef MUELU_FACTORYACCEPTOR_HPP