39 #ifndef dimensionedConstants_H 40 #define dimensionedConstants_H 92 os << static_cast<const dimensionedScalar&>(*this);
98 #define defineDimensionedConstant(Group, Name, Dimensions) \ 99 registerDimensionedConstant register##Name##DimensionedConstant_ \ 105 const Foam::dimensionedScalar& Group::Name \ 107 register##Name##DimensionedConstant_ \ 135 default_(name, value)
150 os << static_cast<const dimensionedScalar&>(*this);
156 #define defineDimensionedConstantWithDefault(Group, Name, DefaultExpr) \ 157 registerDimensionedConstantWithDefault \ 158 register##Name##DimensionedConstant_ \ 165 const Foam::dimensionedScalar& Group::Name \ 167 register##Name##DimensionedConstant_ \ const char *const group
Group name for atomic constants.
Abstract base class for registered object with I/O. Used in debug symbol registration.
virtual void writeData(Ostream &os) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dictionary & dimensionedConstants()
void addDimensionedConstantObject(const char *name, simpleRegIOobject *)
Register DimensionedConstant read/write object.
Dimension set for the base types.
A class for handling words, derived from string.
const Type & value() const
Return const reference to value.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual ~registerDimensionedConstant()
registerDimensionedConstant(const word &group, const char *name, const dimensionSet &dimensions)
const word & name() const
Return const reference to name.
virtual void readData(Istream &is)
Read.
const dimensionSet & dimensions() const
Return const reference to dimensions.