20 #ifndef UDQINPUT__HPP_ 21 #define UDQINPUT__HPP_ 23 #include <opm/input/eclipse/Schedule/UDQ/UDQAssign.hpp> 24 #include <opm/input/eclipse/Schedule/UDQ/UDQDefine.hpp> 25 #include <opm/input/eclipse/Schedule/UDQ/UDQEnums.hpp> 38 UDQIndex(
const std::size_t insert_index_arg,
39 const std::size_t typed_insert_index_arg,
40 const UDQAction action_arg,
41 const UDQVarType var_type_arg)
42 : insert_index (insert_index_arg)
43 , typed_insert_index(typed_insert_index_arg)
45 , var_type (var_type_arg)
48 static UDQIndex serializationTestObject()
51 result.insert_index = 1;
52 result.typed_insert_index = 2;
53 result.action = UDQAction::ASSIGN;
54 result.var_type = UDQVarType::WELL_VAR;
59 bool operator==(
const UDQIndex& data)
const 61 return (insert_index == data.insert_index)
62 && (typed_insert_index == data.typed_insert_index)
63 && (action == data.action)
64 && (var_type == data.var_type)
68 template <
class Serializer>
71 serializer(insert_index);
72 serializer(typed_insert_index);
77 std::size_t insert_index{};
78 std::size_t typed_insert_index{};
79 UDQAction action{UDQAction::ASSIGN};
80 UDQVarType var_type{UDQVarType::NONE};
95 const std::string& keyword()
const {
return this->m_keyword; }
96 const std::string& unit()
const {
return this->m_unit; }
97 UDQVarType var_type()
const {
return this->m_var_type; }
100 bool operator==(
const UDQInput& other)
const;
103 std::variant<const UDQDefine*, const UDQAssign*>
value{};
104 std::string m_keyword{};
105 UDQVarType m_var_type{UDQVarType::NONE};
106 std::string m_unit{};
111 #endif // UDQINPUT__HPP_ Definition: UDQDefine.hpp:50
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: UDQInput.hpp:33
Representation of a UDQ ASSIGN statement.
Definition: UDQAssign.hpp:40
Class for (de-)serializing.
Definition: Serializer.hpp:94