Struct defining the configuration of a wifi channel, which can be made of one or multiple channel segments. More...
#include "wifi-types.h"
Classes | |
struct | Segment |
a channel segment, as a struct with units for channel width More... | |
struct | SegmentWithoutUnits |
a channel segment, as a struct without units for channel width (to be deprecated when using strong types) More... | |
Public Types | |
using | TupleWithoutUnits |
a channel segment, as a tuple without units for channel width (to be deprecated when using strong types) | |
Public Member Functions | |
WifiChannelConfig ()=default | |
WifiChannelConfig (const Segment &segment) | |
Construct a channel config from a channel segment. | |
WifiChannelConfig (const SegmentWithoutUnits &s) | |
Construct a channel config from a segment without units for channel width. | |
WifiChannelConfig (const std::list< TupleWithoutUnits > &tuples) | |
Construct a channel config from a list of tuples without units for channel width. | |
Segment & | front () |
const Segment & | front () const |
auto | operator<=> (const WifiChannelConfig &rhs) const =default |
Three-way comparison operator. | |
Static Public Member Functions | |
static WifiChannelConfig | FromString (const std::string &settings, WifiStandard standard=WIFI_STANDARD_UNSPECIFIED) |
Get the wifi channel config from a WifiPhy::ChannelSettings string. | |
Public Attributes | |
std::vector< Segment > | segments |
channel config | |
Struct defining the configuration of a wifi channel, which can be made of one or multiple channel segments.
Definition at line 93 of file wifi-types.h.
a channel segment, as a tuple without units for channel width (to be deprecated when using strong types)
Definition at line 193 of file wifi-types.h.
|
default |
Referenced by WifiChannelConfig(), FromString(), and operator<=>().
|
inline |
Construct a channel config from a channel segment.
segment | the channel segment |
Definition at line 176 of file wifi-types.h.
References segments.
|
inline |
Construct a channel config from a segment without units for channel width.
s | the segment without units for channel width |
Definition at line 186 of file wifi-types.h.
References WifiChannelConfig().
ns3::WifiChannelConfig::WifiChannelConfig | ( | const std::list< TupleWithoutUnits > & | tuples | ) |
Construct a channel config from a list of tuples without units for channel width.
tuples | the list of tuples without units for channel width |
Definition at line 16 of file wifi-types.cc.
|
static |
Get the wifi channel config from a WifiPhy::ChannelSettings string.
settings | the WifiPhy::ChannelSettings string |
standard | the Wi-Fi standard |
Definition at line 24 of file wifi-types.cc.
References WifiChannelConfig(), ns3::WifiPhy::GetChannelSegmentsChecker(), ns3::WifiPhy::SetUnspecifiedChannelParams(), and ns3::WIFI_STANDARD_UNSPECIFIED.
Referenced by WifiStaticEmlsrTest::GetPhyHelper(), and WifiStaticInfraBssTest::GetPhyHelper().
|
inline |
Definition at line 222 of file wifi-types.h.
References segments.
|
inline |
Definition at line 216 of file wifi-types.h.
References segments.
Referenced by ns3::WifiPhy::SetOperatingChannel().
|
default |
Three-way comparison operator.
rhs | right hand side |
References WifiChannelConfig().
std::vector<Segment> ns3::WifiChannelConfig::segments |
channel config
Definition at line 167 of file wifi-types.h.
Referenced by WifiChannelConfig(), front(), front(), ns3::WifiPhy::SetOperatingChannel(), and ns3::WifiPhy::SetUnspecifiedChannelParams().