chronon::params::Frequency
Frequency value with automatic unit parsing (Hz/kHz/MHz/GHz). More...
#include <UnitTypes.hpp>
Inherits from chronon::params::detail::ScaledUnitBase< Frequency >
Public Functions
| Name | |
|---|---|
| double | mhz() const |
| double | khz() const |
| double | hz() const |
| double | ghz() const |
| Frequency() | |
| Frequency(const std::string & s) | |
| Frequency(double hz) |
Additional inherited members
Public Functions inherited from chronon::params::detail::ScaledUnitBase< Frequency >
| Name | |
|---|---|
| std::string | toString() const |
| bool | operator>=(const Derived & other) const |
| bool | operator>(const Derived & other) const |
| bool | operator==(const Derived & other) const |
| bool | operator<=(const Derived & other) const |
| bool | operator<(const Derived & other) const |
| Derived | operator/(double scalar) const |
| double | operator/(const Derived & other) const |
| Derived | operator-(const Derived & other) const |
| Derived | operator+(const Derived & other) const |
| Derived | operator*(double scalar) const |
| bool | operator!=(const Derived & other) const |
| double | baseValue() const |
| ScaledUnitBase() | |
| ScaledUnitBase(double base_value) | |
| ScaledUnitBase(const std::string & s) |
Protected Functions inherited from chronon::params::detail::ScaledUnitBase< Frequency >
| Name | |
|---|---|
| void | parse(const std::string & s) |
Protected Attributes inherited from chronon::params::detail::ScaledUnitBase< Frequency >
| Name | |
|---|---|
| double | value_ |
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 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 Frequency()
function Frequency
inline explicit Frequency(
const std::string & s
)
function Frequency
inline explicit Frequency(
double hz
)
Updated on 2026-07-06 at 09:03:34 +0000