Received power (W) per spectrum band. More...
#include "wifi-phy-common.h"
Classes | |
| struct | BandLess |
| Comparator for heterogeneous lookup of entries by band. More... | |
Public Types | |
| using | const_iterator = container_type::const_iterator |
| const iterator type | |
| using | container_type = std::vector<value_type> |
| backing container type | |
| using | iterator = container_type::iterator |
| iterator type | |
| using | size_type = std::size_t |
| size type | |
| using | value_type = std::pair<WifiSpectrumBandInfo, Watt_u> |
| (band, power) entry | |
Public Member Functions | |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const WifiSpectrumBandInfo &band) |
| Map-like find by band. | |
| const_iterator | find (const WifiSpectrumBandInfo &band) const |
| Map-like find by band. | |
| std::pair< iterator, bool > | insert (value_type v) |
| Map-like sorted insert. | |
| size_type | size () const |
Private Attributes | |
| container_type | m_data |
| storage, kept in sorted-by-band order | |
Received power (W) per spectrum band.
Map from WifiSpectrumBandInfo to Watt_u, backed by a band-sorted std::vector to avoid a node allocation per inserted band. Lookups are O(log n) via binary search.
Definition at line 254 of file wifi-phy-common.h.
| using ns3::RxPowerWattPerChannelBand::const_iterator = container_type::const_iterator |
const iterator type
Definition at line 260 of file wifi-phy-common.h.
| using ns3::RxPowerWattPerChannelBand::container_type = std::vector<value_type> |
backing container type
Definition at line 258 of file wifi-phy-common.h.
| using ns3::RxPowerWattPerChannelBand::iterator = container_type::iterator |
iterator type
Definition at line 259 of file wifi-phy-common.h.
| using ns3::RxPowerWattPerChannelBand::size_type = std::size_t |
size type
Definition at line 261 of file wifi-phy-common.h.
| using ns3::RxPowerWattPerChannelBand::value_type = std::pair<WifiSpectrumBandInfo, Watt_u> |
(band, power) entry
Definition at line 257 of file wifi-phy-common.h.
|
inline |
Definition at line 264 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::PhyEntity::StartReceivePreamble().
|
inline |
Definition at line 276 of file wifi-phy-common.h.
References m_data.
|
inline |
Definition at line 288 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::HePhy::StartReceiveMuPayload().
|
inline |
Definition at line 294 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::HePhy::StartReceiveMuPayload().
|
inline |
Definition at line 306 of file wifi-phy-common.h.
References m_data.
|
inline |
Definition at line 270 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::HePhy::StartReceiveMuPayload(), ns3::PhyEntity::StartReceivePreamble(), and ns3::Event::UpdateRxPowerW().
|
inline |
Definition at line 282 of file wifi-phy-common.h.
References m_data.
|
inline |
Map-like find by band.
| band | the band to look up |
Definition at line 316 of file wifi-phy-common.h.
References m_data.
Referenced by SpectrumWifiPhyFilterTest::RxCallback(), and ns3::Event::UpdateRxPowerW().
|
inline |
Map-like find by band.
| band | the band to look up |
Definition at line 331 of file wifi-phy-common.h.
References m_data.
|
inline |
Map-like sorted insert.
No-op if a value with the same key is already present.
| v | the (band, power) pair to insert |
Definition at line 346 of file wifi-phy-common.h.
Referenced by ns3::YansWifiChannel::Receive(), and ns3::SpectrumWifiPhy::StartRx().
|
inline |
Definition at line 300 of file wifi-phy-common.h.
References m_data.
Referenced by SpectrumWifiPhyFilterTest::RxCallback(), and ns3::Event::UpdateRxPowerW().
|
private |