EDITNNC.hpp
Go to the documentation of this file.
1/*
2 Copyright 2018 Equinor AS
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_COMMON_EDITNNC_HPP
20#define OPM_COMMON_EDITNNC_HPP
21
23namespace Opm
24{
25
28{
29public:
30 EDITNNC() = default;
31
33 explicit EDITNNC(const Deck& deck);
34
37
39 const std::vector<NNCdata>& data() const
40 {
41 return m_editnnc;
42 }
44 size_t size() const;
46 bool empty() const;
47
48 bool operator==(const EDITNNC& data) const;
49
50 template<class Serializer>
51 void serializeOp(Serializer& serializer)
52 {
53 serializer.vector(m_editnnc);
54 }
55
56private:
57 std::vector<NNCdata> m_editnnc;
58};
59}
60#endif // OPM_COMMON_EDITNNC_HPP
Definition: Deck.hpp:115
Represents edit information for non-neighboring connections (NNCs, faults, etc.)
Definition: EDITNNC.hpp:28
const std::vector< NNCdata > & data() const
Get an ordered set of EDITNNC.
Definition: EDITNNC.hpp:39
bool operator==(const EDITNNC &data) const
size_t size() const
Get the number of entries.
EDITNNC()=default
EDITNNC(const Deck &deck)
Construct from input deck.
static EDITNNC serializeObject()
Returns an instance used for serialization test.
void serializeOp(Serializer &serializer)
Definition: EDITNNC.hpp:51
bool empty() const
Whether EDITNNC was empty.
Definition: Serializer.hpp:38
Definition: A.hpp:4