|
The Gnome Chemistry Utils
0.14.10
|
#include <gcu/value.h>
Public Member Functions | |
| DimensionalValue () | |
| virtual | ~DimensionalValue () |
| char const * | GetAsString () const |
| double | GetAsDouble () const |
| DimensionalValue | operator+ (DimensionalValue const &value) const throw (std::invalid_argument) |
| DimensionalValue | operator* (int n) const |
| GcuDimensionalValue const | GetValue () const |
Public Member Functions inherited from gcu::Value | |
| Value () | |
| virtual | ~Value () |
Used for data with a dimension e.g. a time interval expressed in days.
| gcu::DimensionalValue::DimensionalValue | ( | ) |
Default constructor
|
virtual |
Default destructor
|
virtual |
Reimplemented from gcu::Value.
|
virtual |
Reimplemented from gcu::Value.
|
inline |
| DimensionalValue gcu::DimensionalValue::operator* | ( | int | n | ) | const |
| n | the number used to multiply. |
Multiplies this by n.
| DimensionalValue gcu::DimensionalValue::operator+ | ( | DimensionalValue const & | value | ) | const |
| throw | ( | std::invalid_argument | |||
| ) | |||||
| value | the value to add. |
Adds two values. They need to have the same dimension, otherwise an exception will be thrown.
1.8.8