32 .SetGroupName (
"Wifi")
76 return (
sizeof (uint16_t) +
sizeof (
double)) *
m_snrMap.size () + 1;
84 for (
const auto& staIdSnrPair :
m_snrMap)
95 for (uint8_t j = 0; j < n; j++)
106 for (
const auto& staIdSnrPair :
m_snrMap)
108 os <<
"{STA-ID=" << staIdSnrPair.first <<
" Snr=" << staIdSnrPair.second <<
"} ";
A tag to be attached to a response to a multi-user UL frame, that carries the SNR values with which t...
std::map< uint16_t, double > m_snrMap
Map containing (STA-ID, SNR) pairs.
TypeId GetInstanceTypeId(void) const override
Get the most derived TypeId for this Object.
void Print(std::ostream &os) const override
uint32_t GetSerializedSize(void) const override
void Reset(void)
Reset the content of the tag.
double Get(uint16_t staId) const
Return the SNR value for the given sender.
static TypeId GetTypeId(void)
Get the type ID.
bool IsPresent(uint16_t staId) const
Return true if the SNR value for the given STA-ID is present.
void Serialize(TagBuffer i) const override
void Set(uint16_t staId, double snr)
Set the SNR for the given sender to the given value.
void Deserialize(TagBuffer i) override
MuSnrTag()
Create an empty MuSnrTag.
TAG_BUFFER_INLINE uint16_t ReadU16(void)
void WriteDouble(double v)
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
TAG_BUFFER_INLINE void WriteU16(uint16_t v)
TAG_BUFFER_INLINE uint8_t ReadU8(void)
tag a set of bytes in a packet
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.