12#include "ns3/attribute-helper.h"
13#include "ns3/attribute.h"
14#include "ns3/nstime.h"
259 static bool DoParse(
const std::string s, uint64_t* v);
306namespace TracedValueCallback
Class for representing data rates.
DataRate & operator*=(double rhs)
Scales the DataRate.
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
DataRate operator-(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+(DataRate rhs) const
DataRate operator*(double rhs) const
Scales the DataRate.
Time CalculateBytesTxTime(uint32_t bytes) const
Calculate transmission time.
DataRate & operator-=(DataRate rhs)
friend std::istream & operator>>(std::istream &is, DataRate &rate)
Stream extraction operator.
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::ostream & operator<<(std::ostream &os, const Angles &a)
std::istream & operator>>(std::istream &is, Angles &a)