RU Specification. More...
#include "eht-ru.h"
Public Member Functions | |
RuSpec ()=default | |
Default constructor. | |
RuSpec (RuType ruType, std::size_t index, bool primary160MHz, bool primary80MHzOrLower80MHz) | |
Constructor. | |
std::size_t | GetIndex () const |
Get the RU index within the 80 MHz segment. | |
std::size_t | GetPhyIndex (MHz_u bw, uint8_t p20Index) const |
Get the RU PHY index. | |
bool | GetPrimary160MHz () const |
Get whether the RU is allocated in the primary 160MHz channel. | |
bool | GetPrimary80MHzOrLower80MHz () const |
RuType | GetRuType () const |
Get the RU type. | |
bool | operator!= (const RuSpec &other) const |
Compare this RU to the given RU. | |
bool | operator< (const RuSpec &other) const |
Compare this RU to the given RU. | |
bool | operator== (const RuSpec &other) const |
Compare this RU to the given RU. | |
Private Attributes | |
std::size_t | m_index {} |
RU index (starting at 1) within the 80 MHz segment. | |
bool | m_primary160MHz {} |
true if the RU is allocated in the primary 160MHz channel | |
bool | m_primary80MHzOrLower80MHz {} |
if the RU is allocated in the primary 160MHz channel, true if the RU is allocated in the primary 80MHz channel, otherwise true if the RU is allocated in the lower 80MHz channel | |
RuType | m_ruType {} |
RU type. | |
|
default |
Default constructor.
ns3::EhtRu::RuSpec::RuSpec | ( | RuType | ruType, |
std::size_t | index, | ||
bool | primary160MHz, | ||
bool | primary80MHzOrLower80MHz ) |
Constructor.
ruType | the RU type |
index | the RU index (starting at 1) within the 80 MHz segment |
primary160MHz | whether the RU is allocated in the primary 160MHz channel |
primary80MHzOrLower80MHz | if the RU is allocated in the primary 160MHz channel, whether the RU is allocated in the primary 80MHz channel, otherwise whether the RU is allocated in the lower 80MHz channel of the secondary 160 MHz channel |
Definition at line 843 of file eht-ru.cc.
References NS_ABORT_MSG_IF.
std::size_t ns3::EhtRu::RuSpec::GetIndex | ( | ) | const |
Get the RU index within the 80 MHz segment.
Definition at line 863 of file eht-ru.cc.
References NS_ABORT_MSG_IF.
Referenced by ns3::EhtRu::DoesOverlap(), and ns3::operator<<().
std::size_t ns3::EhtRu::RuSpec::GetPhyIndex | ( | MHz_u | bw, |
uint8_t | p20Index ) const |
Get the RU PHY index.
bw | the width of the channel of which the RU is part |
p20Index | the index of the primary20 channel |
Definition at line 884 of file eht-ru.cc.
References ns3::EhtRu::GetNRus(), ns3::RU_2x996_TONE, and ns3::RU_4x996_TONE.
bool ns3::EhtRu::RuSpec::GetPrimary160MHz | ( | ) | const |
Get whether the RU is allocated in the primary 160MHz channel.
Definition at line 870 of file eht-ru.cc.
References NS_ABORT_MSG_IF.
Referenced by ns3::EhtRu::DoesOverlap(), and ns3::operator<<().
bool ns3::EhtRu::RuSpec::GetPrimary80MHzOrLower80MHz | ( | ) | const |
Definition at line 877 of file eht-ru.cc.
References NS_ABORT_MSG_IF.
Referenced by ns3::EhtRu::DoesOverlap(), and ns3::operator<<().
RuType ns3::EhtRu::RuSpec::GetRuType | ( | ) | const |
Get the RU type.
Definition at line 856 of file eht-ru.cc.
References NS_ABORT_MSG_IF.
Referenced by ns3::EhtRu::DoesOverlap(), and ns3::operator<<().
bool ns3::EhtRu::RuSpec::operator!= | ( | const RuSpec & | other | ) | const |
bool ns3::EhtRu::RuSpec::operator< | ( | const RuSpec & | other | ) | const |
bool ns3::EhtRu::RuSpec::operator== | ( | const RuSpec & | other | ) | const |
Compare this RU to the given RU.
other | the given RU |
Definition at line 1179 of file eht-ru.cc.
References m_index, m_primary160MHz, m_primary80MHzOrLower80MHz, and m_ruType.
|
private |
RU index (starting at 1) within the 80 MHz segment.
Definition at line 115 of file eht-ru.h.
Referenced by operator<(), and operator==().
|
private |
true if the RU is allocated in the primary 160MHz channel
Definition at line 116 of file eht-ru.h.
Referenced by operator==().
|
private |
if the RU is allocated in the primary 160MHz channel, true if the RU is allocated in the primary 80MHz channel, otherwise true if the RU is allocated in the lower 80MHz channel
Definition at line 117 of file eht-ru.h.
Referenced by operator==().
|
private |