Fixed-capacity inline vector holding the per-segment data of a WifiSpectrumBandInfo. More...
#include "wifi-phy-common.h"
Public Types | |
| using | const_iterator = typename std::array<T, N>::const_iterator |
| const iterator type | |
| using | iterator = typename std::array<T, N>::iterator |
| iterator type | |
| using | size_type = std::size_t |
| size type | |
| using | value_type = T |
| element type | |
Public Member Functions | |
| WifiBandSegments ()=default | |
| Default constructor (empty). | |
| WifiBandSegments (std::initializer_list< T > init) | |
| Initializer-list constructor so existing call sites can write. | |
| T & | at (size_type i) |
| Access the i-th element. | |
| const T & | at (size_type i) const |
| Access the i-th element. | |
| T & | back () |
| const T & | back () const |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| template<typename... Args> | |
| void | emplace_back (Args &&... args) |
| Append a new element constructed in-place. | |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| T & | front () |
| const T & | front () const |
| bool | operator== (const WifiBandSegments &other) const |
| Equality compares size and elements element-wise. | |
| size_type | size () const |
Private Attributes | |
| std::array< T, N > | m_data {} |
| inline storage | |
| std::uint8_t | m_size {0} |
| number of elements currently held | |
Fixed-capacity inline vector holding the per-segment data of a WifiSpectrumBandInfo.
A band has at most a small known number of segments (a single contiguous range in the common case, two for 80+80 split RUs), so inline storage covers every case without heap allocations and keeps band copies cheap.
| T | element type |
| N | maximum number of elements |
Definition at line 69 of file wifi-phy-common.h.
| using ns3::WifiBandSegments< T, N >::const_iterator = typename std::array<T, N>::const_iterator |
const iterator type
Definition at line 75 of file wifi-phy-common.h.
| using ns3::WifiBandSegments< T, N >::iterator = typename std::array<T, N>::iterator |
iterator type
Definition at line 74 of file wifi-phy-common.h.
| using ns3::WifiBandSegments< T, N >::size_type = std::size_t |
size type
Definition at line 73 of file wifi-phy-common.h.
| using ns3::WifiBandSegments< T, N >::value_type = T |
element type
Definition at line 72 of file wifi-phy-common.h.
|
default |
Default constructor (empty).
Referenced by operator==().
|
inline |
Initializer-list constructor so existing call sites can write.
.
| init | the elements to copy in |
Definition at line 85 of file wifi-phy-common.h.
|
inline |
Access the i-th element.
| i | the index of the element |
Definition at line 111 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::operator<<().
|
inline |
Access the i-th element.
| i | the index of the element |
Definition at line 121 of file wifi-phy-common.h.
References m_data.
|
inline |
Definition at line 139 of file wifi-phy-common.h.
References m_data, and m_size.
Referenced by ns3::operator<().
|
inline |
Definition at line 145 of file wifi-phy-common.h.
|
inline |
Definition at line 162 of file wifi-phy-common.h.
References m_data.
|
inline |
Definition at line 174 of file wifi-phy-common.h.
References m_data.
|
inline |
Definition at line 186 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::InterferenceHelper::IsBandInFrequencyRange(), and operator==().
|
inline |
Definition at line 192 of file wifi-phy-common.h.
References m_data, and m_size.
Referenced by ns3::InterferenceHelper::IsBandInFrequencyRange(), and operator==().
|
inline |
Append a new element constructed in-place.
| args | constructor arguments |
Definition at line 155 of file wifi-phy-common.h.
References m_data, m_size, and NS_ASSERT.
Referenced by ns3::SpectrumWifiPhy::GetBandForInterface().
|
inline |
Definition at line 101 of file wifi-phy-common.h.
References m_size.
|
inline |
Definition at line 168 of file wifi-phy-common.h.
|
inline |
Definition at line 180 of file wifi-phy-common.h.
|
inline |
Definition at line 127 of file wifi-phy-common.h.
References m_data.
Referenced by ns3::operator<().
|
inline |
Definition at line 133 of file wifi-phy-common.h.
References m_data.
|
inline |
Equality compares size and elements element-wise.
| other | the other vector to compare against |
Definition at line 202 of file wifi-phy-common.h.
References WifiBandSegments(), cbegin(), cend(), and m_size.
|
inline |
Definition at line 95 of file wifi-phy-common.h.
References m_size.
Referenced by ns3::operator<<().
|
private |
|
private |
number of elements currently held
Definition at line 209 of file wifi-phy-common.h.
Referenced by WifiBandSegments(), back(), back(), cend(), emplace_back(), empty(), end(), end(), operator==(), and size().