A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::WifiSchedPrecedence< Prio > Struct Template Reference

Definition of priority for container queues that can be specialized by subclasses by providing the type of the priority field. More...

#include "wifi-mac-queue-scheduler-impl.h"

Inheritance diagram for ns3::WifiSchedPrecedence< Prio >:
Collaboration diagram for ns3::WifiSchedPrecedence< Prio >:

Public Member Functions

std::weak_ordering operator<=> (const WifiSchedPrecedence< Prio > &other) const
 Spaceship comparison operator.
bool operator== (const WifiSchedPrecedence< Prio > &) const =default
 Equality operator, needed because equality testing never invokes the spaceship operator and the spaceship operator is non-defaulted.

Public Attributes

Prio priority
 priority
WifiContainerQueueType type
 type of container queue

Detailed Description

template<class Prio>
struct ns3::WifiSchedPrecedence< Prio >

Definition of priority for container queues that can be specialized by subclasses by providing the type of the priority field.

This definition gives precedence to control frames over frames of the other types, and to management frames over data frames. In case multiple container queues have precedence over others, the one with the highest priority is served.

Template Parameters
Prio[explicit] Priority type (must provide the spaceship operator)

Definition at line 48 of file wifi-mac-queue-scheduler-impl.h.

Member Function Documentation

◆ operator<=>()

template<class Prio>
std::weak_ordering ns3::WifiSchedPrecedence< Prio >::operator<=> ( const WifiSchedPrecedence< Prio > & other) const

Spaceship comparison operator.

Implementation of the templates declared above.

Parameters
otherWifiSchedPrecedence object to compare to this one
Returns
the result of the comparison

Definition at line 362 of file wifi-mac-queue-scheduler-impl.h.

References priority, type, ns3::WIFI_CTL_QUEUE, and ns3::WIFI_MGT_QUEUE.

◆ operator==()

template<class Prio>
bool ns3::WifiSchedPrecedence< Prio >::operator== ( const WifiSchedPrecedence< Prio > & ) const
default

Equality operator, needed because equality testing never invokes the spaceship operator and the spaceship operator is non-defaulted.

Returns
whether this object is equal to the given one

Member Data Documentation

◆ priority

template<class Prio>
Prio ns3::WifiSchedPrecedence< Prio >::priority

priority

Definition at line 50 of file wifi-mac-queue-scheduler-impl.h.

Referenced by operator<=>().

◆ type

template<class Prio>
WifiContainerQueueType ns3::WifiSchedPrecedence< Prio >::type

type of container queue

Definition at line 51 of file wifi-mac-queue-scheduler-impl.h.

Referenced by operator<=>().


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