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

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

#include "he-ru.h"

+ Collaboration diagram for ns3::HeRu::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 131 of file he-ru.h.

Constructor & Destructor Documentation

◆ RuSpecCompare()

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

Constructor.

Parameters
channelWidththe channel width
p20Indexthe index of the primary20 channel

Definition at line 363 of file he-ru.cc.

Member Function Documentation

◆ operator()()

bool ns3::HeRu::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 370 of file he-ru.cc.

References ns3::HeRu::RuSpec::GetPhyIndex(), ns3::HeRu::RuSpec::GetRuType(), and ns3::HeRu::GetSubcarrierGroup().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_channelWidth

MHz_u ns3::HeRu::RuSpecCompare::m_channelWidth
private

The channel width.

Definition at line 152 of file he-ru.h.

◆ m_p20Index

uint8_t ns3::HeRu::RuSpecCompare::m_p20Index
private

Primary20 channel index.

Definition at line 153 of file he-ru.h.


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