#include <Quantity.h>
Public Types | |
typedef T::UNITS | Units |
typedef Quantity< T > | Type |
typedef std::shared_ptr< Type > | SP |
typedef std::shared_ptr< const Type > | SCP |
Public Member Functions | |
Quantity () | |
Quantity (double v, Units u) | |
SP | relativeTo () const |
bool | isRelative () const |
bool | isIncremental () const |
SP | incrementalFrom () const |
double | value () const |
Units | units () const |
std::string | name () const |
double | valueAs (Units u) const |
double | valueAs () const |
Type & | setValue (double value) |
Type & | setUnits (Units units) |
Type & | changeUnits (Units units) |
Type & | setRelativeTo (SP relativeTo) |
Type & | setIncrementalFrom (SP incrementalFrom) |
Type & | setName (std::string name) |
std::string | toString () const |
Static Public Member Functions | |
static Type::SP | sp (double v, Units u) |
static Type::SP | sp () |
Protected Attributes | |
double | b_value |
Units | b_units |
SP | b_relativeTo |
SP | b_incrementalFrom |
std::string | b_name |
Detailed Description
template<typename T>
class Origen::Quantity< T >
- Examples:
- tstHistory.cpp, and tstTime.cpp.
Member Typedef Documentation
typedef T::UNITS Units |
Constructor & Destructor Documentation
|
inline |
Member Function Documentation
|
inline |
Referenced by Quantity< Time >::isRelative(), Quantity< Time >::setRelativeTo(), and Quantity< Time >::valueAs().
|
inline |
Referenced by Quantity< Time >::valueAs().
|
inline |
Referenced by Quantity< Time >::valueAs().
|
inline |
|
inline |
Referenced by Quantity< Time >::setValue(), and TEST().
|
inline |
Referenced by Quantity< Time >::setUnits(), TEST(), and Quantity< Time >::toString().
|
inline |
Referenced by Quantity< Time >::setName().
|
inline |
Referenced by Quantity< Time >::changeUnits(), Quantity< Time >::toString(), and Quantity< Time >::valueAs().
|
inline |
Referenced by Quantity< Time >::changeUnits(), and TEST().
Referenced by Quantity< Time >::changeUnits(), and TEST().
|
inline |
|
inline |
Referenced by TEST().
|
inlinestatic |
Member Data Documentation
|
protected |
Referenced by Quantity< Time >::value(), and Quantity< Time >::valueAs().
|
protected |
Referenced by Quantity< Time >::units().
|
protected |
Referenced by Quantity< Time >::relativeTo().
|
protected |
Referenced by Quantity< Time >::incrementalFrom().
|
protected |
Referenced by Quantity< Time >::name().
The documentation for this class was generated from the following file:
- Core/dc/Quantity.h