chronon::params::Bandwidth
Bandwidth value with automatic unit parsing ("
#include <UnitTypes.hpp>
Inherits from chronon::params::detail::ScaledUnitBase< Bandwidth >
Public Functions
| Name | |
|---|---|
| double | mibPerSecond() const |
| double | kibPerSecond() const |
| double | gibPerSecond() const |
| double | bytesPerSecond() 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::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< Bandwidth >
| Name | |
|---|---|
| void | parse(const std::string & s) |
Protected Attributes inherited from chronon::params::detail::ScaledUnitBase< Bandwidth >
| Name | |
|---|---|
| double | value_ |
Detailed Description
class chronon::params::Bandwidth;
Bandwidth value with automatic unit parsing ("
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