PvtoTable.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013 by Andreas Lauser
3 
4  This file is part of the Open Porous Media project (OPM).
5 
6  OPM is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  OPM is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with OPM. If not, see <http://www.gnu.org/licenses/>.
18  */
19 #ifndef OPM_PARSER_PVTO_TABLE_HPP
20 #define OPM_PARSER_PVTO_TABLE_HPP
21 
22 #include "FullTable.hpp"
23 #include "PvtoInnerTable.hpp"
24 #include "PvtoOuterTable.hpp"
25 
26 namespace Opm {
27  // forward declaration
28  class TableManager;
29 
33  class PvtoTable : public Opm::FullTable<Opm::PvtoOuterTable, Opm::PvtoInnerTable>
34  {
36  friend class TableManager;
37  using ParentType::init;
38 
39  public:
40  PvtoTable() = default;
41 
42 #ifdef BOOST_TEST_MODULE
43  // DO NOT TRY TO CALL THIS METHOD! it is only for the unit tests!
44  void initFORUNITTESTONLY(Opm::DeckKeywordConstPtr keyword, size_t tableIdx)
45  { init(keyword, tableIdx); }
46 #endif
47 
48  };
49 
50  typedef std::shared_ptr<PvtoTable> PvtoTablePtr;
51  typedef std::shared_ptr<const PvtoTable> PvtoConstTablePtr;
52 }
53 
54 #endif
Definition: Deck.hpp:29
std::shared_ptr< const DeckKeyword > DeckKeywordConstPtr
Definition: DeckKeyword.hpp:71
void init(Opm::DeckKeywordConstPtr keyword, size_t tableIdx)
Read full tables from keywords like PVTO.
Definition: FullTable.hpp:56
Definition: TableManager.hpp:66
Read the table for the PVTO and provide convenient access to it.
Definition: PvtoTable.hpp:33
std::shared_ptr< const PvtoTable > PvtoConstTablePtr
Definition: PvtoTable.hpp:51
PvtoTable()=default
std::shared_ptr< PvtoTable > PvtoTablePtr
Definition: PvtoTable.hpp:50
Definition: FullTable.hpp:34