A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
block-ack-type.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Author: Sébastien Deronne <sebastien.deronne@gmail.com>
18 */
19
20#ifndef BLOCK_ACK_TYPE_H
21#define BLOCK_ACK_TYPE_H
22
23#include <cstdint>
24#include <ostream>
25#include <vector>
26
27namespace ns3
28{
29
30/**
31 * \ingroup wifi
32 * The different BlockAck variants.
33 */
35{
36 /**
37 * \enum Variant
38 * \brief The BlockAck variants
39 */
41 {
47 };
48
49 Variant m_variant; //!< Block Ack variant
50 std::vector<uint8_t> m_bitmapLen; //!< Length (bytes) of included bitmaps
51
52 /**
53 * Default constructor for BlockAckType.
54 */
56 /**
57 * Constructor for BlockAckType with given variant.
58 *
59 * \param v the Block Ack variant
60 */
62 /**
63 * Constructor for BlockAckType with given variant
64 * and bitmap length.
65 *
66 * \param v the Block Ack variant
67 * \param l the length (bytes) of included bitmaps
68 */
69 BlockAckType(Variant v, std::vector<uint8_t> l);
70};
71
72/**
73 * \ingroup wifi
74 * The different BlockAckRequest variants.
75 */
77{
78 /**
79 * \enum Variant
80 * \brief The BlockAckReq variants
81 */
83 {
88 };
89
90 Variant m_variant; //!< Block Ack Request variant
91 uint8_t m_nSeqControls; //!< Number of included Starting Sequence Control fields.
92 //!< This member is added for future support of Multi-TID BARs
93
94 /**
95 * Default constructor for BlockAckReqType.
96 */
98 /**
99 * Constructor for BlockAckReqType with given variant.
100 *
101 * \param v the Block Ack Request variant
102 */
104 /**
105 * Constructor for BlockAckReqType with given variant
106 * and number of SSC fields.
107 *
108 * \param v the Block Ack Request variant
109 * \param nSeqControls the number of included Starting Sequence Control fields
110 */
111 BlockAckReqType(Variant v, uint8_t nSeqControls);
112};
113
114/**
115 * Serialize BlockAckType to ostream in a human-readable form.
116 *
117 * \param os std::ostream
118 * \param type block ack type
119 * \return std::ostream
120 */
121std::ostream& operator<<(std::ostream& os, const BlockAckType& type);
122
123/**
124 * Serialize BlockAckReqType to ostream in a human-readable form.
125 *
126 * \param os std::ostream
127 * \param type block ack request type
128 * \return std::ostream
129 */
130std::ostream& operator<<(std::ostream& os, const BlockAckReqType& type);
131
132} // namespace ns3
133
134#endif /* BLOCK_ACK_TYPE_H */
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)
Definition: angles.cc:159
The different BlockAckRequest variants.
uint8_t m_nSeqControls
Number of included Starting Sequence Control fields.
BlockAckReqType()
Default constructor for BlockAckReqType.
Variant
The BlockAckReq variants.
Variant m_variant
Block Ack Request variant.
The different BlockAck variants.
BlockAckType()
Default constructor for BlockAckType.
Variant
The BlockAck variants.
Variant m_variant
Block Ack variant.
std::vector< uint8_t > m_bitmapLen
Length (bytes) of included bitmaps.