20 #ifndef DECKRECORD_HPP 21 #define DECKRECORD_HPP 23 #include <opm/input/eclipse/Deck/DeckItem.hpp> 35 typedef std::vector< DeckItem >::const_iterator const_iterator;
38 explicit DeckRecord( std::vector< DeckItem >&& items,
const bool check_for_duplicate_names =
true );
42 std::size_t size()
const;
45 DeckItem& getItem( std::size_t index );
46 DeckItem& getItem(
const std::string& name );
49 const DeckItem& getItem( std::size_t index )
const;
50 const DeckItem& getItem(
const std::string& name )
const;
53 bool hasItem(
const std::string& name)
const;
57 return getItem( Item::itemName );
62 return getItem( Item::itemName );
65 const_iterator begin()
const;
66 const_iterator end()
const;
68 void write(
DeckOutput& writer, std::size_t item_offset = 0)
const;
69 void write_data(
DeckOutput& writer, std::size_t item_offset = 0)
const;
70 friend std::ostream& operator<<(std::ostream& os,
const DeckRecord& record);
72 bool equal(
const DeckRecord& other,
bool cmp_default,
bool cmp_numeric)
const;
73 bool operator==(
const DeckRecord& other)
const;
74 bool operator!=(
const DeckRecord& other)
const;
76 template<
class Serializer>
83 std::vector< DeckItem > m_items;
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: DeckItem.hpp:38
Definition: DeckOutput.hpp:29
Definition: DeckRecord.hpp:33
Class for (de-)serializing.
Definition: Serializer.hpp:95