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 (uint16_t channelWidth, uint8_t p20Index)
 Constructor.
 
bool operator() (const RuSpec &lhs, const RuSpec &rhs) const
 Function call operator.
 

Private Attributes

uint16_t m_channelWidth
 The channel width in MHz.
 
uint8_t m_p20Index
 Primary20 channel index.
 

Detailed Description

Struct providing a function call operator to compare two RUs.

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

Constructor & Destructor Documentation

◆ RuSpecCompare()

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

Constructor.

Parameters
channelWidththe channel width in MHz
p20Indexthe index of the primary20 channel

Definition at line 374 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 381 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

uint16_t ns3::HeRu::RuSpecCompare::m_channelWidth
private

The channel width in MHz.

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

◆ m_p20Index

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

Primary20 channel index.

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


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