27 #include "ns3/nstime.h" 28 #include "ns3/attribute.h" 29 #include "ns3/attribute-helper.h" 30 #include "ns3/deprecated.h" 216 static bool DoParse (
const std::string s, uint64_t *v);
bool operator==(const DataRate &rhs) const
std::istream & operator>>(std::istream &is, Angles &a)
initialize a struct Angles from input
Simulation virtual time values and global simulation resolution.
bool operator!=(const DataRate &rhs) const
NS_DEPRECATED double CalculateTxTime(uint32_t bytes) const
Calculate transmission time.
bool operator>(const DataRate &rhs) const
bool operator<=(const DataRate &rhs) const
uint64_t m_bps
data rate [bps]
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.
uint64_t GetBitRate() const
Get the underlying bitrate.
Class for representing data rates.
int64x64_t operator*(const int64x64_t &lhs, const int64x64_t &rhs)
Multiplication operator.
friend std::istream & operator>>(std::istream &is, DataRate &rate)
Stream extraction operator.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Time CalculateBitsTxTime(uint32_t bits) const
Calculate transmission time.
#define NS_DEPRECATED
Mark a function as deprecated.
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