A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiRu::RuSpecCompare Struct Reference

Struct providing a function call operator to compare two RUs. More...

#include "wifi-ru.h"

+ Collaboration diagram for ns3::WifiRu::RuSpecCompare:

Public Member Functions

 RuSpecCompare (MHz_u channelWidth, uint8_t p20Index)
 Constructor.
 
bool operator() (const RuSpec &lhs, const RuSpec &rhs) const
 Function call operator.
 

Private Attributes

MHz_u m_channelWidth
 The channel width.
 
uint8_t m_p20Index
 Primary20 channel index.
 

Detailed Description

Struct providing a function call operator to compare two RUs.

Definition at line 32 of file wifi-ru.h.

Constructor & Destructor Documentation

◆ RuSpecCompare()

ns3::WifiRu::RuSpecCompare::RuSpecCompare ( MHz_u channelWidth,
uint8_t p20Index )

Constructor.

Parameters
channelWidththe channel width
p20Indexthe index of the primary20 channel

Definition at line 16 of file wifi-ru.cc.

Member Function Documentation

◆ operator()()

bool ns3::WifiRu::RuSpecCompare::operator() ( const RuSpec & lhs,
const RuSpec & rhs ) const

Function call operator.

Parameters
lhsleft hand side RU
rhsright hand side RU
Returns
true if the left hand side RU has its leftmost tone at a lower frequency than the leftmost tone of the right hand side RU, false otherwise

Definition at line 23 of file wifi-ru.cc.

References ns3::WifiRu::GetPhyIndex(), ns3::WifiRu::GetRuType(), ns3::WifiRu::GetSubcarrierGroup(), ns3::WifiRu::IsHe(), ns3::WIFI_MOD_CLASS_EHT, and ns3::WIFI_MOD_CLASS_HE.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_channelWidth

MHz_u ns3::WifiRu::RuSpecCompare::m_channelWidth
private

The channel width.

Definition at line 53 of file wifi-ru.h.

◆ m_p20Index

uint8_t ns3::WifiRu::RuSpecCompare::m_p20Index
private

Primary20 channel index.

Definition at line 54 of file wifi-ru.h.


The documentation for this struct was generated from the following files: