73 return (
sizeof(uint16_t) +
sizeof(
double)) *
m_snrMap.size() + 1;
81 for (
const auto& staIdSnrPair :
m_snrMap)
92 for (uint8_t j = 0; j < n; j++)
103 for (
const auto& staIdSnrPair :
m_snrMap)
105 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.
void Print(std::ostream &os) const override
void Reset()
Reset the content of the tag.
static TypeId GetTypeId()
Get the type ID.
double Get(uint16_t staId) const
Return the SNR value for the given sender.
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.
uint32_t GetSerializedSize() const override
void Deserialize(TagBuffer i) override
MuSnrTag()
Create an empty MuSnrTag.
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
void WriteDouble(double v)
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
TAG_BUFFER_INLINE uint8_t ReadU8()
TAG_BUFFER_INLINE uint16_t ReadU16()
TAG_BUFFER_INLINE void WriteU16(uint16_t v)
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.