Debian Codegraph @

packages/anasazi/src-rbgen/RBGen_MethodFactory.hpp

raw
1 // @HEADER
2 // *****************************************************************************
3 // Anasazi: Block Eigensolvers Package
4 //
5 // Copyright 2004 NTESS and the Anasazi contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9
10 #ifndef RBGEN_METHOD_FACTORY_HPP
11 #define RBGEN_METHOD_FACTORY_HPP
12
13 #include "Teuchos_ParameterList.hpp"
14 #include "RBGen_Method.hpp"
15
16 namespace RBGen {
17
18 //! Abstract factory for creating basis generation methods.
19 template< class DataSetType, class OperatorType >
20 class MethodFactory {
21
22 public:
23 //! @name Constructor/Destructor.
24 //@{
25
26 //! Default constructor.
27 MethodFactory() {};
28
29 //! Destructor.
30 virtual ~MethodFactory() {};
31 //@}
32
33 //! @name Factory methods
34 //@{
35
36 virtual Teuchos::RCP<Method< DataSetType, OperatorType > > create( const Teuchos::ParameterList& params ) = 0;
37
38 //@}
39
40 };
41
42 } // end of RBGen namespace
43
44 #endif // RBGEN_METHOD_FACTORY_HPP