WListManager.hpp
Go to the documentation of this file.
1/*
2 Copyright 2019 Equinor ASA.
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#include <cstddef>
20#include <map>
21#include <vector>
22#include <string>
23
24namespace Opm {
25
26class WList;
27
29public:
30 WListManager() = default;
31
33
34 bool hasList(const std::string&) const;
36 const WList& getList(const std::string& name) const;
38 void delWell(const std::string& well);
39
40 bool operator==(const WListManager& data) const;
41
42 template<class Serializer>
43 void serializeOp(Serializer& serializer)
44 {
45 serializer.map(wlists);
46 }
47
48private:
49 std::map<std::string, WList> wlists;
50};
51
52}
const char *const name
Definition: cJSON.h:258
const char *const string
Definition: cJSON.h:170
Definition: Serializer.hpp:38
Definition: WListManager.hpp:28
void delWell(const std::string &well)
bool hasList(const std::string &) const
WList & getList(const std::string &name)
const WList & getList(const std::string &name) const
void serializeOp(Serializer &serializer)
Definition: WListManager.hpp:43
bool operator==(const WListManager &data) const
WListManager()=default
WList & newList(const std::string &name)
static WListManager serializeObject()
Definition: WList.hpp:26
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022