1 #ifndef _ATM_FREQUENCY_H
2 #define _ATM_FREQUENCY_H
29 #error "This is a C++ include file and cannot be used from plain C"
54 Frequency(
double frequency,
const std::string &units);
67 inline double get(
const std::string &units)
const {
return sget(
valueIS_, units); }
108 static double sget(
double value,
const std::string &units);
109 static double sput(
double value,
const std::string &units);
Frequency operator*(float scf)
Operator "multiplication of a frequency by a float".
#define ATM_NAMESPACE_END
Frequency()
Default constructor: Frequency value set to 0 Hz.
bool operator==(const Frequency &rhs) const
Operator "comparator == for two frequencies".
Frequency & operator=(double rhs)
Operator "equal to a double converted to Frequency in Hz".
Frequency operator/(unsigned int scf)
Operator "division of a frequency by an unsigned int".
bool operator<(const Frequency &rhs) const
Operator "comparator < for two frequencies".
bool operator!=(const Frequency &rhs) const
Operator "comparator != for two frequencies".
Frequency operator-(const Frequency &rhs)
Operator "subtraction of frequencies".
Frequency operator*(unsigned int scf)
Operator "multiplication of a frequency by an unsigned int".
Frequency operator/(double scf)
Operator "division of a frequency by a double".
Frequency & operator=(const Frequency &rhs)
Operator "equal to a Frequency".
Frequency operator*(double scf)
Operator "multiplication of a frequency by a double".
Frequency operator/(float scf)
Operator "division of a frequency by a float".
bool operator>=(const Frequency &rhs) const
Operator "comparator >= for two frequencies".
Frequency operator*(int scf)
Operator "multiplication of a frequency by an int".
#define ATM_NAMESPACE_BEGIN
bool operator<=(const Frequency &rhs) const
Operator "comparator <= for two frequencies".
Frequency operator+(const Frequency &rhs)
Operator "addition of frequencies".
static double sput(double value, const std::string &units)
static double sget(double value, const std::string &units)
double get() const
Accessor to get the numerical value of frequency (in International System units: Hz) ...
bool operator>(const Frequency &rhs) const
Operator "comparator > for two frequencies".
Frequency operator/(int scf)
Operator "division of a frequency by an int".
virtual ~Frequency()
Destructor.
Defines a frequency value with units.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.