#include <supported-rates.h>
Public Member Functions | |
SupportedRates () | |
void | AddSupportedRate (uint32_t bs) |
void | SetBasicRate (uint32_t bs) |
bool | IsSupportedRate (uint32_t bs) const |
bool | IsBasicRate (uint32_t bs) const |
uint8_t | GetNRates (void) const |
uint32_t | GetRate (uint8_t i) const |
uint32_t | GetSerializedSize (void) const |
Buffer::Iterator | Serialize (Buffer::Iterator start) const |
Buffer::Iterator | Deserialize (Buffer::Iterator start) |
Private Attributes | |
uint8_t | m_nRates |
uint8_t | m_rates [8] |
Definition at line 29 of file supported-rates.h.
ns3::SupportedRates::SupportedRates | ( | ) |
Definition at line 31 of file supported-rates.cc.
void ns3::SupportedRates::AddSupportedRate | ( | uint32_t | bs | ) |
Definition at line 36 of file supported-rates.cc.
References IsSupportedRate(), m_nRates, m_rates, NS_ASSERT, and NS_LOG_DEBUG.
Referenced by ns3::NqstaWifiMac::GetSupportedRates(), ns3::NqapWifiMac::GetSupportedRates(), and SetBasicRate().
Buffer::Iterator ns3::SupportedRates::Deserialize | ( | Buffer::Iterator | start | ) |
Definition at line 118 of file supported-rates.cc.
References ELEMENT_ID, m_nRates, m_rates, NS_ASSERT, ns3::Buffer::Iterator::Read(), and ns3::Buffer::Iterator::ReadU8().
uint8_t ns3::SupportedRates::GetNRates | ( | void | ) | const |
Definition at line 95 of file supported-rates.cc.
References m_nRates.
uint32_t ns3::SupportedRates::GetRate | ( | uint8_t | i | ) | const |
Definition at line 100 of file supported-rates.cc.
References m_rates.
uint32_t ns3::SupportedRates::GetSerializedSize | ( | void | ) | const |
Definition at line 105 of file supported-rates.cc.
References m_nRates.
bool ns3::SupportedRates::IsBasicRate | ( | uint32_t | bs | ) | const |
Definition at line 68 of file supported-rates.cc.
References m_nRates, and m_rates.
Referenced by ns3::NqstaWifiMac::Receive().
bool ns3::SupportedRates::IsSupportedRate | ( | uint32_t | bs | ) | const |
Definition at line 81 of file supported-rates.cc.
References m_nRates, and m_rates.
Referenced by AddSupportedRate(), ns3::NqstaWifiMac::Receive(), and ns3::NqapWifiMac::Receive().
Buffer::Iterator ns3::SupportedRates::Serialize | ( | Buffer::Iterator | start | ) | const |
Definition at line 110 of file supported-rates.cc.
References ELEMENT_ID, m_nRates, m_rates, ns3::Buffer::Iterator::Write(), and ns3::Buffer::Iterator::WriteU8().
void ns3::SupportedRates::SetBasicRate | ( | uint32_t | bs | ) |
Definition at line 48 of file supported-rates.cc.
References AddSupportedRate(), m_nRates, m_rates, and NS_LOG_DEBUG.
Referenced by ns3::NqapWifiMac::GetSupportedRates().
uint8_t ns3::SupportedRates::m_nRates [private] |
Definition at line 46 of file supported-rates.h.
Referenced by AddSupportedRate(), Deserialize(), GetNRates(), GetSerializedSize(), IsBasicRate(), IsSupportedRate(), Serialize(), and SetBasicRate().
uint8_t ns3::SupportedRates::m_rates[8] [private] |
Definition at line 47 of file supported-rates.h.
Referenced by AddSupportedRate(), Deserialize(), GetRate(), IsBasicRate(), IsSupportedRate(), Serialize(), and SetBasicRate().