26#include <opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp>
27#include <opm/input/eclipse/Schedule/UDQ/UDQDefine.hpp>
28#include <opm/input/eclipse/Schedule/UDQ/UDQAssign.hpp>
39 UDQIndex(std::size_t insert_index_arg, std::size_t typed_insert_index_arg, UDQAction action_arg, UDQVarType var_type_arg) :
40 insert_index(insert_index_arg),
41 typed_insert_index(typed_insert_index_arg),
43 var_type(var_type_arg)
47 static UDQIndex serializationTestObject()
50 result.insert_index = 1;
51 result.typed_insert_index = 2;
52 result.action = UDQAction::ASSIGN;
53 result.var_type = UDQVarType::WELL_VAR;
58 bool operator==(
const UDQIndex& data)
const {
59 return insert_index == data.insert_index &&
60 typed_insert_index == data.typed_insert_index &&
61 action == data.action &&
62 var_type == data.var_type;
65 template<
class Serializer>
68 serializer(insert_index);
69 serializer(typed_insert_index);
74 std::size_t insert_index;
75 std::size_t typed_insert_index;
92 const std::string& keyword()
const;
93 const UDQVarType& var_type()
const;
94 const std::string& unit()
const;
97 bool operator==(
const UDQInput& other)
const;
99 std::variant<UDQDefine, UDQAssign> value;
100 const std::string m_keyword;
101 UDQVarType m_var_type;
102 const std::string m_unit;
Class for (de-)serializing.
Definition: Serializer.hpp:75
Definition: UDQAssign.hpp:34
Definition: UDQDefine.hpp:43
Definition: UDQInput.hpp:35
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29