27#include <opm/input/eclipse/Units/Dimension.hpp>
35 explicit UDAValue(
const std::string&);
47 UDAValue& operator=(
double value) =
delete;
48 UDAValue& operator=(
const std::string& value) =
delete;
49 void update(
double d);
50 void update(
const std::string& s);
51 void update_value(
const UDAValue& other);
53 static UDAValue serializationTestObject();
70 double epsilonLimit()
const;
75 void assert_numeric()
const;
76 void assert_numeric(
const std::string& error_msg)
const;
79 bool operator==(
const UDAValue& other)
const;
80 bool operator!=(
const UDAValue& other)
const;
82 bool is_numeric()
const {
return double_value.has_value(); }
84 template<
class Serializer>
87 serializer(double_value);
88 serializer(string_value);
92 void operator*=(
double rhs);
96 std::optional<double> double_value;
97 std::string string_value;
102std::ostream& operator<<( std::ostream& stream,
const UDAValue& uda_value );
Definition Dimension.hpp:27
Class for (de-)serializing.
Definition Serializer.hpp:91
Definition UDAValue.hpp:31
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30