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