|
opm-common
|
Public Member Functions | |
| bool | has (opt) const |
| Query if a value is set. | |
| double | get (opt m) const |
| Read the value indicated by m. | |
| double | get (opt m, double default_value) const |
| Read the value indicated by m. | |
| double | get (opt m, double default_value, const std::string &tracer_name) const |
| Rates & | set (opt m, double value) |
| Set the value specified by m. | |
| Rates & | set (opt m, double value, const std::string &tracer_name) |
| bool | flowing () const |
| Returns true if any of the rates oil, gas, water is nonzero. | |
| template<class MessageBufferType> | |
| void | write (MessageBufferType &buffer) const |
| template<class MessageBufferType> | |
| void | read (MessageBufferType &buffer) |
| bool | operator== (const Rates &rat2) const |
| void | init_json (Json::JsonObject &json_data) const |
| template<class Serializer> | |
| void | serializeOp (Serializer &serializer) |
Static Public Member Functions | |
| static Rates | serializationTestObject () |
|
inline |
Read the value indicated by m.
Throws an exception if if the requested value is unset.
|
inline |
Read the value indicated by m.
Returns a default value if the requested value is unset.
|
inline |
Set the value specified by m.
Throws an exception if multiple values are requested. Returns a self-reference to support chaining.