14 #ifndef CARMA_SERVICES_FREQUENCY_H
15 #define CARMA_SERVICES_FREQUENCY_H
47 Frequency(
double value,
const std::string& units);
92 double wavelength(
const std::string& units)
const;
147 #endif //CARMA_SERVICES_FREQUENCY_H
const Frequency operator+(const Frequency &frequency) const
Add two Frequencys.
Frequency(double value, const std::string &units)
Construct an Frequency given a value and units.
Frequency & operator+=(const Frequency &frequency)
Increment Frequency.
The Frequency class can represent any frequency in any units.
bool operator>(const Frequency &frequency) const
Compare two frequencies.
double gigahertz() const
Convenience method that returns the value of this frequency in GHz.
double hertz() const
Convenience method that returns the value of this frequency in Hertz.
Frequency & operator-=(const Frequency &frequency)
Decrement Frequency.
bool operator<(const Frequency &frequency) const
Compare two frequencies.
const Frequency operator-(const Frequency &frequency) const
Subtract two Frequencys.
double wavelength(const std::string &units) const
Convenience method that returns the value of this the wavelength equivalent of this frequency...
virtual ~Frequency()
Destructor.
double millihertz() const
Convenience method that returns the value of this frequency in millihertz.
std::ostream & operator<<(std::ostream &os, const carma::services::Angle &angle)
Define the << operator to allow, e.g.
double megahertz() const
Convenience method that returns the value of this frequency in millihertz.