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
();
48
49
static
TypeId
GetTypeId
();
50
TypeId
GetInstanceTypeId
()
const
;
51
virtual
uint32_t
GetSerializedSize
()
const
;
52
virtual
void
Serialize
(
Buffer::Iterator
start
)
const
;
59
virtual
uint32_t
Deserialize
(
Buffer::Iterator
start);
60
virtual
void
Print
(std::ostream &os)
const
;
61
67
virtual
uint32_t
DeserializeSingleIe
(
Buffer::Iterator
start);
69
void
SetMaxSize
(uint16_t size);
71
typedef
std::vector<Ptr<WifiInformationElement> >::iterator
Iterator
;
73
Iterator
Begin
();
75
Iterator
End
();
77
bool
AddInformationElement
(
Ptr<WifiInformationElement>
element);
79
Ptr<WifiInformationElement>
FindFirst
(
WifiInformationElementId
id
)
const
;
80
88
virtual
bool
operator==
(
const
WifiInformationElementVector
& a)
const
;
89
protected
:
93
typedef
std::vector<Ptr<WifiInformationElement> >
IE_VECTOR
;
95
uint32_t
GetSize
()
const
;
96
IE_VECTOR
m_elements
;
97
uint16_t
m_maxSize
;
99
};
100
101
}
102
#endif
/* WIFI_INFORMATION_ELEMENT_VECTOR_H */
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::WifiInformationElementVector::GetTypeId
static TypeId GetTypeId()
Definition:
wifi-information-element-vector.cc:43
ns3::Ptr< WifiInformationElement >
ns3::WifiInformationElementVector::m_elements
IE_VECTOR m_elements
Information element vector.
Definition:
wifi-information-element-vector.h:96
ns3::WifiInformationElementVector::operator==
virtual bool operator==(const WifiInformationElementVector &a) const
Check if the given WifiInformationElementVectors are equivalent.
Definition:
wifi-information-element-vector.cc:171
visualizer.core.start
def start
Definition:
core.py:1482
ns3::WifiInformationElementVector::AddInformationElement
bool AddInformationElement(Ptr< WifiInformationElement > element)
add an IE, if maxSize has exceeded, returns false
Definition:
wifi-information-element-vector.cc:128
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::WifiInformationElementVector::End
Iterator End()
Returns End of the vector.
Definition:
wifi-information-element-vector.cc:123
ns3::WifiInformationElementVector::Iterator
std::vector< Ptr< WifiInformationElement > >::iterator Iterator
As soon as this is a vector, we define an Iterator.
Definition:
wifi-information-element-vector.h:71
ns3::WifiInformationElementVector::FindFirst
Ptr< WifiInformationElement > FindFirst(WifiInformationElementId id) const
vector of pointers to information elements is the body of IeVector
Definition:
wifi-information-element-vector.cc:138
ns3::WifiInformationElementVector::DeserializeSingleIe
virtual uint32_t DeserializeSingleIe(Buffer::Iterator start)
Needed when you try to deserialize a lonely IE inside other header.
Definition:
wifi-information-element-vector.cc:82
ns3::WifiInformationElementVector::m_maxSize
uint16_t m_maxSize
Size in bytes (actually, max packet length)
Definition:
wifi-information-element-vector.h:98
ns3::WifiInformationElementVector::Print
virtual void Print(std::ostream &os) const
Definition:
wifi-information-element-vector.cc:108
ns3::WifiInformationElementVector::Begin
Iterator Begin()
Returns Begin of the vector.
Definition:
wifi-information-element-vector.cc:118
ns3::WifiInformationElementVector::Serialize
virtual void Serialize(Buffer::Iterator start) const
Definition:
wifi-information-element-vector.cc:61
ns3::WifiInformationElementVector::IE_VECTOR
std::vector< Ptr< WifiInformationElement > > IE_VECTOR
typedef for a vector of WifiInformationElements.
Definition:
wifi-information-element-vector.h:93
ns3::WifiInformationElementVector::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition:
wifi-information-element-vector.cc:69
ns3::WifiInformationElementVector::WifiInformationElementVector
WifiInformationElementVector()
Definition:
wifi-information-element-vector.cc:30
ns3::WifiInformationElementVector::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
wifi-information-element-vector.cc:56
ns3::WifiInformationElementVector
Information element vectorImplements a vector of WifiInformationElements.
Definition:
wifi-information-element-vector.h:43
ns3::WifiInformationElementVector::~WifiInformationElementVector
~WifiInformationElementVector()
Definition:
wifi-information-element-vector.cc:34
ns3::WifiInformationElementVector::GetSize
uint32_t GetSize() const
Current number of bytes.
Definition:
wifi-information-element-vector.cc:160
ns3::WifiInformationElementVector::GetInstanceTypeId
TypeId GetInstanceTypeId() const
Definition:
wifi-information-element-vector.cc:51
ns3::WifiInformationElementId
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
Definition:
wifi-information-element.h:41
ns3::WifiInformationElementVector::SetMaxSize
void SetMaxSize(uint16_t size)
Set maximum size to control overflow of the max packet length.
Definition:
wifi-information-element-vector.cc:113
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:49
src
wifi
model
wifi-information-element-vector.h
Generated on Sat Apr 19 2014 14:07:11 for ns-3 by
1.8.6