Skip to main content

chronon::params::Bandwidth

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

#include <UnitTypes.hpp>

Public Functions

Name
std::stringtoString() const
booloperator>(const Bandwidth & other) const
booloperator==(const Bandwidth & other) const
booloperator<(const Bandwidth & other) const
Bandwidthoperator/(double scalar) const
Bandwidthoperator*(double scalar) const
booloperator!=(const Bandwidth & other) const
doublemibPerSecond() const
doublekibPerSecond() const
doublegibPerSecond() const
doublebytesPerSecond() const
Bandwidth(const std::string & s)
Bandwidth(double bytes_per_second)
Bandwidth()

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 toString

inline std::string toString() const

function operator>

inline bool operator>(
const Bandwidth & other
) const

function operator==

inline bool operator==(
const Bandwidth & other
) const

function operator<

inline bool operator<(
const Bandwidth & other
) const

function operator/

inline Bandwidth operator/(
double scalar
) const

function operator*

inline Bandwidth operator*(
double scalar
) const

function operator!=

inline bool operator!=(
const Bandwidth & other
) const

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 explicit Bandwidth(
const std::string & s
)

function Bandwidth

inline explicit Bandwidth(
double bytes_per_second
)

function Bandwidth

inline Bandwidth()

Updated on 2026-05-26 at 05:42:32 +0000