20#ifndef ACTION_RESULT_HPP
21#define ACTION_RESULT_HPP
25#include <unordered_set>
74 explicit WellSet(
const std::vector<std::string>& wells);
75 void add(
const std::string& well);
77 std::size_t size()
const;
78 std::vector<std::string> wells()
const;
79 bool contains(
const std::string& well)
const;
83 bool operator==(
const WellSet& other)
const;
85 template<
class Serializer>
88 serializer(this->well_set);
91 static WellSet serializationTestObject();
94 std::unordered_set<std::string> well_set;
102 explicit Result(
bool result_arg);
103 Result(
bool result_arg,
const std::vector<std::string>& wells);
106 explicit operator bool()
const;
107 std::vector<std::string> wells()
const;
109 bool has_well(
const std::string& well)
const;
111 void add_well(
const std::string& well);
115 bool operator==(
const Result& other)
const;
117 template<
class Serializer>
120 serializer(this->result);
121 serializer(this->matching_wells);
124 static Result serializationTestObject();
127 void assign(
bool value);
129 std::optional<WellSet> matching_wells;
Definition ActionResult.hpp:99
Definition ActionResult.hpp:71
Class for (de-)serializing.
Definition Serializer.hpp:84
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30