20 #ifndef DECKRECORD_HPP
21 #define DECKRECORD_HPP
28 #include <opm/input/eclipse/Deck/DeckItem.hpp>
34 typedef std::vector< DeckItem >::const_iterator const_iterator;
37 DeckRecord( std::vector< DeckItem >&& items,
const bool check_for_duplicate_names =
true );
45 DeckItem& getItem(
const std::string& name );
48 const DeckItem& getItem(
size_t index )
const;
49 const DeckItem& getItem(
const std::string& name )
const;
52 bool hasItem(
const std::string& name)
const;
56 return getItem( Item::itemName );
61 return getItem( Item::itemName );
64 const_iterator begin()
const;
65 const_iterator end()
const;
67 void write(
DeckOutput& writer, std::size_t item_offset = 0)
const;
68 void write_data(
DeckOutput& writer, std::size_t item_offset = 0)
const;
69 friend std::ostream& operator<<(std::ostream& os,
const DeckRecord& record);
71 bool equal(
const DeckRecord& other,
bool cmp_default,
bool cmp_numeric)
const;
72 bool operator==(
const DeckRecord& other)
const;
73 bool operator!=(
const DeckRecord& other)
const;
75 template<
class Serializer>
78 serializer.vector(m_items);
82 std::vector< DeckItem > m_items;
Definition: DeckItem.hpp:37
Definition: DeckOutput.hpp:29
Definition: DeckRecord.hpp:32
Definition: Serializer.hpp:38
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29