Skip to main content

chronon::params::Bandwidth

Bandwidth value with automatic unit parsing ("/s"). More...

#include <UnitTypes.hpp>

Inherits from chronon::params::detail::ScaledUnitBase< Bandwidth >

Public Functions

Name
doublemibPerSecond() const
doublekibPerSecond() const
doublegibPerSecond() const
doublebytesPerSecond() const
Bandwidth()
Bandwidth(double bytes_per_second)
Bandwidth(const std::string & s)

Additional inherited members

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

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< Bandwidth >

Name
voidparse(const std::string & s)

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

Name
doublevalue_

Detailed Description

class chronon::params::Bandwidth;

Bandwidth value with automatic unit parsing ("/s").

Bandwidth bw("10GB/s");
double bps = bw.bytesPerSecond();

Public Functions Documentation

function mibPerSecond

inline double mibPerSecond() const

function kibPerSecond

inline double kibPerSecond() const

function gibPerSecond

inline double gibPerSecond() const

function bytesPerSecond

inline double bytesPerSecond() const

function Bandwidth

inline Bandwidth()

function Bandwidth

inline explicit Bandwidth(
double bytes_per_second
)

function Bandwidth

inline explicit Bandwidth(
const std::string & s
)

Updated on 2026-07-06 at 09:03:34 +0000