13#include "ns3/attribute-helper.h"
14#include "ns3/attribute.h"
220template <
typename Item>
230template <
typename Item>
241template <
typename Item>
251template <
typename Item>
258template <
typename Item>
273template <
typename Item>
288template <
typename Item>
305template <
typename Item>
Smart pointer class similar to boost::intrusive_ptr.
Class for representing queue sizes.
bool operator>(const QueueSize &rhs) const
friend std::istream & operator>>(std::istream &is, QueueSize &size)
Stream extraction operator.
bool operator<(const QueueSize &rhs) const
bool operator<=(const QueueSize &rhs) const
QueueSizeUnit GetUnit() const
Get the underlying unit.
bool operator!=(const QueueSize &rhs) const
uint32_t m_value
queue size [bytes or packets]
bool operator>=(const QueueSize &rhs) const
bool operator==(const QueueSize &rhs) const
static bool DoParse(const std::string s, QueueSizeUnit *unit, uint32_t *value)
Parse a string representing a QueueSize.
uint32_t GetValue() const
Get the underlying value.
#define ATTRIBUTE_HELPER_HEADER(type)
Declare the attribute value, accessor and checkers for class type
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
#define NS_ABORT_IF(cond)
Abnormal program termination if a condition is true.
int64x64_t operator-(const int64x64_t &lhs, const int64x64_t &rhs)
Subtraction operator.
int64x64_t operator+(const int64x64_t &lhs, const int64x64_t &rhs)
Addition operator.
QueueSizeUnit
Enumeration of the operating modes of queues.
@ BYTES
Use number of bytes for queue size.
@ PACKETS
Use number of packets for queue size.
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)