chronon::params::Frequency
Frequency value with automatic unit parsing (Hz/kHz/MHz/GHz). More...
#include <UnitTypes.hpp>
Public Functions
| Name | |
|---|---|
| std::string | toString() const |
| bool | operator>(const Frequency & other) const |
| bool | operator==(const Frequency & other) const |
| bool | operator<(const Frequency & other) const |
| Frequency | operator/(double scalar) const |
| double | operator/(const Frequency & other) const |
| Frequency | operator-(const Frequency & other) const |
| Frequency | operator+(const Frequency & other) const |
| Frequency | operator*(double scalar) const |
| bool | operator!=(const Frequency & other) const |
| double | mhz() const |
| double | khz() const |
| double | hz() const |
| double | ghz() const |
| Frequency(const std::string & s) | |
| Frequency(double hz) | |
| Frequency() |
Detailed Description
class chronon::params::Frequency;
Frequency value with automatic unit parsing (Hz/kHz/MHz/GHz).
Frequency f("3GHz");
double ghz = f.ghz(); // 3.0
Public Functions Documentation
function toString
inline std::string toString() const
function operator>
inline bool operator>(
const Frequency & other
) const
function operator==
inline bool operator==(
const Frequency & other
) const
function operator<
inline bool operator<(
const Frequency & other
) const
function operator/
inline Frequency operator/(
double scalar
) const
function operator/
inline double operator/(
const Frequency & other
) const
function operator-
inline Frequency operator-(
const Frequency & other
) const
function operator+
inline Frequency operator+(
const Frequency & other
) const
function operator*
inline Frequency operator*(
double scalar
) const
function operator!=
inline bool operator!=(
const Frequency & other
) const
function mhz
inline double mhz() const
function khz
inline double khz() const
function hz
inline double hz() const
function ghz
inline double ghz() const
function Frequency
inline explicit Frequency(
const std::string & s
)
function Frequency
inline explicit Frequency(
double hz
)
function Frequency
inline Frequency()
Updated on 2026-05-26 at 05:42:32 +0000