PvtgTable.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_PVTG_TABLE_HPP
20 #define OPM_PARSER_PVTG_TABLE_HPP
21 
22 #include "FullTable.hpp"
23 #include "PvtgInnerTable.hpp"
24 #include "PvtgOuterTable.hpp"
25 
26 namespace Opm {
27  // forward declaration
28  class TableManager;
29 
33  class PvtgTable : public Opm::FullTable<Opm::PvtgOuterTable, Opm::PvtgInnerTable>
34  {
36 
37  friend class TableManager;
38 
39  using ParentType::init;
40 
41  public:
42  PvtgTable() = default;
43 
44 #ifdef BOOST_TEST_MODULE
45  // DO NOT TRY TO CALL THIS METHOD! it is only for the unit tests!
46  void initFORUNITTESTONLY(Opm::DeckKeywordConstPtr keyword, size_t tableIdx)
47  { init(keyword, tableIdx); }
48 #endif
49  };
50 
51  typedef std::shared_ptr<PvtgTable> PvtgTablePtr;
52  typedef std::shared_ptr<const PvtgTable> PvtgConstTablePtr;
53 }
54 
55 #endif
std::shared_ptr< const PvtgTable > PvtgConstTablePtr
Definition: PvtgTable.hpp:52
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 PVTG and provide convenient access to it.
Definition: PvtgTable.hpp:33
PvtgTable()=default
std::shared_ptr< PvtgTable > PvtgTablePtr
Definition: PvtgTable.hpp:51
Definition: FullTable.hpp:34