20 #ifndef OPM_TABLE_CONTAINER_HPP 21 #define OPM_TABLE_CONTAINER_HPP 63 using TableMap = std::map<size_t, std::shared_ptr<SimpleTable>>;
76 const TableMap& tables()
const;
78 void addTable(
size_t tableNumber, std::shared_ptr<SimpleTable> table);
82 bool hasTable(
size_t tableNumber)
const;
83 const SimpleTable& getTable(
size_t tableNumber)
const;
85 const SimpleTable& operator[](
size_t tableNumber)
const 87 return this->getTable(tableNumber);
90 template <
class TableType>
91 const TableType& getTable(
size_t tableNumber)
const 101 return static_cast<const TableType&
>(this->getTable(tableNumber));
106 template<
class Serializer>
109 serializer(m_maxTables);
110 serializer(m_tables);
120 #endif // OPM_TABLE_CONTAINER_HPP This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: SimpleTable.hpp:35
The TableContainer class implements a simple map:
Definition: TableContainer.hpp:60
Class for (de-)serializing.
Definition: Serializer.hpp:94