28#include <opm/input/eclipse/Units/Dimension.hpp>
36 explicit UDAValue(
const std::string&);
48 UDAValue& operator=(
double value) =
delete;
49 UDAValue& operator=(
const std::string& value) =
delete;
50 void update(
double d);
51 void update(
const std::string& s);
52 void update_value(
const UDAValue& other);
54 static UDAValue serializationTestObject();
71 double epsilonLimit()
const;
76 void assert_numeric()
const;
77 void assert_numeric(
const std::string& error_msg)
const;
80 bool operator==(
const UDAValue& other)
const;
81 bool operator!=(
const UDAValue& other)
const;
83 bool is_numeric()
const {
return numeric_value; }
85 template<
class Serializer>
88 serializer(numeric_value);
89 serializer(double_value);
90 serializer(string_value);
94 void operator*=(
double rhs);
100 std::string string_value;
105std::ostream& operator<<( std::ostream& stream,
const UDAValue& uda_value );
Definition Dimension.hpp:27
Class for (de-)serializing.
Definition Serializer.hpp:84
Definition UDAValue.hpp:32
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30