A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
wifi-information-element-vector.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 IITP RAS
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Authors: Kirill Andreev <andreev@iitp.ru>
19
* Pavel Boyko <boyko.iitp.ru>
20
*/
21
22
#ifndef WIFI_INFORMATION_ELEMENT_VECTOR_H
23
#define WIFI_INFORMATION_ELEMENT_VECTOR_H
24
25
#include "ns3/header.h"
26
#include "ns3/simple-ref-count.h"
27
28
#include "ns3/wifi-information-element.h"
29
30
31
namespace
ns3 {
32
43
class
WifiInformationElementVector
:
public
Header
44
{
45
public
:
46
WifiInformationElementVector
();
47
~WifiInformationElementVector
();
49
// \{
50
static
TypeId
GetTypeId
();
51
TypeId
GetInstanceTypeId
()
const
;
52
virtual
uint32_t
GetSerializedSize
()
const
;
53
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
60
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
61
virtual
void
Print
(std::ostream &os)
const
;
62
//\}
68
virtual
uint32_t
DeserializeSingleIe
(
Buffer::Iterator
start);
70
void
SetMaxSize
(uint16_t size);
72
typedef
std::vector<Ptr<WifiInformationElement> >::iterator
Iterator
;
74
Iterator
Begin
();
76
Iterator
End
();
78
bool
AddInformationElement
(
Ptr<WifiInformationElement>
element);
80
Ptr<WifiInformationElement>
FindFirst
(
WifiInformationElementId
id
)
const
;
81
82
virtual
bool
operator==
(
const
WifiInformationElementVector
& a)
const
;
83
protected
:
84
typedef
std::vector<Ptr<WifiInformationElement> >
IE_VECTOR
;
86
uint32_t
GetSize
()
const
;
87
IE_VECTOR
m_elements
;
89
uint16_t
m_maxSize
;
90
};
91
92
}
93
#endif
/* WIFI_INFORMATION_ELEMENT_VECTOR_H */
src
wifi
model
wifi-information-element-vector.h
Generated on Fri Dec 21 2012 19:00:49 for ns-3 by
1.8.1.2