27 #include "ns3/nstime.h" 28 #include "ns3/attribute.h" 29 #include "ns3/attribute-helper.h" 30 #include "ns3/deprecated.h" 272 static bool DoParse (
const std::string s, uint64_t *v);
320 namespace TracedValueCallback {
bool operator==(const DataRate &rhs) const
DataRate operator*(double rhs)
Scales the DataRate.
Simulation virtual time values and global simulation resolution.
bool operator!=(const DataRate &rhs) const
bool operator>(const DataRate &rhs) const
bool operator<=(const DataRate &rhs) const
DataRate operator+(DataRate rhs)
uint64_t m_bps
data rate [bps]
std::istream & operator>>(std::istream &is, Angles &a)
bool operator<(const DataRate &rhs) const
static bool DoParse(const std::string s, uint64_t *v)
Parse a string representing a DataRate into an uint64_t.
DataRate operator-(DataRate rhs)
uint64_t GetBitRate() const
Get the underlying bitrate.
Class for representing data rates.
std::ostream & operator<<(std::ostream &os, const Angles &a)
int64x64_t operator*(const int64x64_t &lhs, const int64x64_t &rhs)
Multiplication operator.
DataRate & operator+=(DataRate rhs)
friend std::istream & operator>>(std::istream &is, DataRate &rate)
Stream extraction operator.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time CalculateBitsTxTime(uint32_t bits) const
Calculate transmission time.
DataRate & operator*=(double rhs)
Scales the DataRate.
DataRate & operator-=(DataRate rhs)
Time CalculateBytesTxTime(uint32_t bytes) const
Calculate transmission time.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
bool operator>=(const DataRate &rhs) const