Debian Codegraph @

packages/anasazi/src-rbgen/RBGen_Preprocessor.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_PREPROCESSOR_HPP
11 #define RBGEN_PREPROCESSOR_HPP
12
13 #include "Teuchos_ParameterList.hpp"
14 #include "Teuchos_RCP.hpp"
15
16 namespace RBGen {
17
18 template< class DataSetType >
19 class FileIOHandler;
20
21 //! Abstract base class for encapsulating dataset preprocessing.
22 template< class DataSetType >
23 class Preprocessor {
24
25 public:
26 //! @name Constructor/Destructor.
27 //@{
28
29 //! Default constructor.
30 Preprocessor() {};
31
32 //! Destructor.
33 virtual ~Preprocessor() {};
34 //@}
35
36 //! @name Initialization/Reset Methods
37 //@{
38
39 //! Initialize preprocessor
40 virtual void Initialize( const Teuchos::RCP< Teuchos::ParameterList >& params,
41 const Teuchos::RCP<FileIOHandler<DataSetType> >& fileio ) = 0;
42
43 //! Reset preprocessor
44 virtual void Reset() = 0;
45 //@}
46
47 //! @name Preprocess Methods
48 //@{
49
50 //! Preprocess the snapshot set passed in
51 virtual void Preprocess( Teuchos::RCP< DataSetType >& ss ) = 0;
52 //@}
53
54 //! @name Status Methods
55 //@{
56
57 //! Return initialized status of the preprocessor
58 virtual bool isInitialized() const = 0;
59
60 //@}
61 };
62
63 } // end of RBGen namespace
64
65 #endif // RBGEN_PREPROCESSOR_HPP