33 return standard() ? t : t*multiplier_;
43 result[i] = toStandard(l[i]);
61 return standard() ?
tf :
tf*multiplier_;
91 return standard() ? t : t/multiplier_;
101 result[i] = toUser(l[i]);
119 return standard() ?
tf :
tf/multiplier_;
#define forAll(list, i)
Loop across all elements in list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for managing temporary objects.
Unit conversion structure. Contains the associated dimensions and the multiplier with which to conver...
T toUser(const T &) const
Convert a value to user units.
void makeStandard(T &) const
Convert a value to standard units.
bool standard() const
Return whether this unit is standard. I.e., is its multiplier one?
T toStandard(const T &) const
Convert a value to standard units.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)