Skip to main content

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
doublemhz() const
doublekhz() const
doublehz() const
doubleghz() const
Frequency()
Frequency(const std::string & s)
Frequency(double hz)

Additional inherited members

Public Functions inherited from chronon::params::detail::ScaledUnitBase< Frequency >

Name
std::stringtoString() const
booloperator>=(const Derived & other) const
booloperator>(const Derived & other) const
booloperator==(const Derived & other) const
booloperator<=(const Derived & other) const
booloperator<(const Derived & other) const
Derivedoperator/(double scalar) const
doubleoperator/(const Derived & other) const
Derivedoperator-(const Derived & other) const
Derivedoperator+(const Derived & other) const
Derivedoperator*(double scalar) const
booloperator!=(const Derived & other) const
doublebaseValue() const
ScaledUnitBase()
ScaledUnitBase(double base_value)
ScaledUnitBase(const std::string & s)

Protected Functions inherited from chronon::params::detail::ScaledUnitBase< Frequency >

Name
voidparse(const std::string & s)

Protected Attributes inherited from chronon::params::detail::ScaledUnitBase< Frequency >

Name
doublevalue_

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