A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
wifi-mac-queue-elem.cc
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Universita' degli Studi di Napoli Federico II
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Stefano Avallone <stavallo@unina.it>
7
*/
8
9
#include "
wifi-mac-queue-elem.h
"
10
11
#include "
wifi-mpdu.h
"
12
13
namespace
ns3
14
{
15
16
WifiMacQueueElem::WifiMacQueueElem
(
Ptr<WifiMpdu>
item)
17
:
mpdu
(item),
18
expiryTime
(0),
19
ac
(
AC_UNDEF
),
20
expired
(false)
21
{
22
}
23
24
WifiMacQueueElem::~WifiMacQueueElem
()
25
{
26
deleter
(
mpdu
);
27
inflights
.clear();
28
}
29
30
}
// namespace ns3
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
ptr.h:66
ns3::AC_UNDEF
@ AC_UNDEF
Total number of ACs.
Definition
qos-utils.h:76
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiMacQueueElem::expired
bool expired
whether this MPDU has been marked as expired
Definition
wifi-mac-queue-elem.h:45
ns3::WifiMacQueueElem::mpdu
Ptr< WifiMpdu > mpdu
MPDU stored by this element.
Definition
wifi-mac-queue-elem.h:41
ns3::WifiMacQueueElem::WifiMacQueueElem
WifiMacQueueElem(Ptr< WifiMpdu > item)
Constructor.
Definition
wifi-mac-queue-elem.cc:16
ns3::WifiMacQueueElem::deleter
Callback< void, Ptr< WifiMpdu > > deleter
reset the iterator stored by the MPDU
Definition
wifi-mac-queue-elem.h:47
ns3::WifiMacQueueElem::ac
AcIndex ac
the Access Category associated with the queue storing this element (set by WifiMacQueue)
Definition
wifi-mac-queue-elem.h:43
ns3::WifiMacQueueElem::inflights
std::map< uint8_t, Ptr< WifiMpdu > > inflights
map of MPDUs in-flight on each link
Definition
wifi-mac-queue-elem.h:46
ns3::WifiMacQueueElem::expiryTime
Time expiryTime
expiry time of the MPDU (set by WifiMacQueue)
Definition
wifi-mac-queue-elem.h:42
ns3::WifiMacQueueElem::~WifiMacQueueElem
~WifiMacQueueElem()
Definition
wifi-mac-queue-elem.cc:24
wifi-mac-queue-elem.h
wifi-mpdu.h
src
wifi
model
wifi-mac-queue-elem.cc
Generated on Wed Jun 11 2025 13:15:40 for ns-3 by
1.13.2