WifiProtection is an abstract base struct. More...
#include "wifi-protection.h"
 Inheritance diagram for ns3::WifiProtection:
 Inheritance diagram for ns3::WifiProtection: Collaboration diagram for ns3::WifiProtection:
 Collaboration diagram for ns3::WifiProtection:| Public Types | |
| enum | Method { NONE = 0 , RTS_CTS , CTS_TO_SELF , MU_RTS_CTS } | 
| Available protection methods.  More... | |
| Public Member Functions | |
| WifiProtection (Method m) | |
| Constructor. | |
| virtual | ~WifiProtection () | 
| virtual std::unique_ptr< WifiProtection > | Copy () const =0 | 
| Clone this object. | |
| virtual void | Print (std::ostream &os) const =0 | 
| Print the object contents. | |
| Public Attributes | |
| const Method | method | 
| protection method | |
| std::optional< Time > | protectionTime | 
| time required by the protection method | |
WifiProtection is an abstract base struct.
Each derived struct defines a protection method and stores the information needed to perform protection according to that method.
Definition at line 30 of file wifi-protection.h.
Available protection methods.
| Enumerator | |
|---|---|
| NONE | |
| RTS_CTS | |
| CTS_TO_SELF | |
| MU_RTS_CTS | |
Definition at line 36 of file wifi-protection.h.
| ns3::WifiProtection::WifiProtection | ( | Method | m | ) | 
Constructor.
| m | the protection method for this object | 
Definition at line 20 of file wifi-protection.cc.
| 
 | virtual | 
Definition at line 25 of file wifi-protection.cc.
| 
 | pure virtual | 
Clone this object.
Implemented in ns3::WifiCtsToSelfProtection, ns3::WifiMuRtsCtsProtection, ns3::WifiNoProtection, and ns3::WifiRtsCtsProtection.
| 
 | pure virtual | 
Print the object contents.
| os | output stream in which the data should be printed. | 
Implemented in ns3::WifiCtsToSelfProtection, ns3::WifiMuRtsCtsProtection, ns3::WifiNoProtection, and ns3::WifiRtsCtsProtection.
Referenced by ns3::operator<<().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| const Method ns3::WifiProtection::method | 
protection method
Definition at line 63 of file wifi-protection.h.
Referenced by ns3::FrameExchangeManager::CalculateProtectionTime(), and ns3::HeFrameExchangeManager::CalculateProtectionTime().
| std::optional<Time> ns3::WifiProtection::protectionTime | 
time required by the protection method
Definition at line 64 of file wifi-protection.h.
Referenced by ns3::WifiNoProtection::WifiNoProtection(), and ns3::FrameExchangeManager::CalculateProtectionTime().