chronon::params::Bandwidth
Bandwidth value with automatic unit parsing ("
#include <UnitTypes.hpp>
Public Functions
| Name | |
|---|---|
| std::string | toString() const |
| bool | operator>(const Bandwidth & other) const |
| bool | operator==(const Bandwidth & other) const |
| bool | operator<(const Bandwidth & other) const |
| Bandwidth | operator/(double scalar) const |
| Bandwidth | operator*(double scalar) const |
| bool | operator!=(const Bandwidth & other) const |
| double | mibPerSecond() const |
| double | kibPerSecond() const |
| double | gibPerSecond() const |
| double | bytesPerSecond() const |
| Bandwidth(const std::string & s) | |
| Bandwidth(double bytes_per_second) | |
| Bandwidth() |
Detailed Description
class chronon::params::Bandwidth;
Bandwidth value with automatic unit parsing ("
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