A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
flow-id-tag.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2008 INRIA
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
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
*/
20
#ifndef FLOW_ID_TAG_H
21
#define FLOW_ID_TAG_H
22
23
#include "ns3/tag.h"
24
25
namespace
ns3
{
26
27
class
FlowIdTag
:
public
Tag
28
{
29
public
:
34
static
TypeId
GetTypeId
(
void
);
35
virtual
TypeId
GetInstanceTypeId
(
void
)
const
;
36
virtual
uint32_t
GetSerializedSize
(
void
)
const
;
37
virtual
void
Serialize
(
TagBuffer
buf)
const
;
38
virtual
void
Deserialize
(
TagBuffer
buf);
39
virtual
void
Print
(std::ostream &os)
const
;
40
FlowIdTag
();
41
47
FlowIdTag
(uint32_t flowId);
52
void
SetFlowId
(uint32_t flowId);
57
uint32_t
GetFlowId
(
void
)
const
;
62
static
uint32_t
AllocateFlowId
(
void
);
63
private
:
64
uint32_t
m_flowId
;
65
};
66
67
}
// namespace ns3
68
69
#endif
/* FLOW_ID_TAG_H */
ns3::FlowIdTag
Introspection did not find any typical Config paths.
Definition:
flow-id-tag.h:28
ns3::FlowIdTag::GetFlowId
uint32_t GetFlowId(void) const
Gets the flow id for the tag.
Definition:
flow-id-tag.cc:88
ns3::FlowIdTag::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
flow-id-tag.cc:30
ns3::FlowIdTag::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
flow-id-tag.cc:45
ns3::FlowIdTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
flow-id-tag.cc:40
ns3::FlowIdTag::FlowIdTag
FlowIdTag()
Definition:
flow-id-tag.cc:68
ns3::FlowIdTag::Deserialize
virtual void Deserialize(TagBuffer buf)
Definition:
flow-id-tag.cc:57
ns3::FlowIdTag::SetFlowId
void SetFlowId(uint32_t flowId)
Sets the flow id for the tag.
Definition:
flow-id-tag.cc:82
ns3::FlowIdTag::AllocateFlowId
static uint32_t AllocateFlowId(void)
Uses a static variable to generate sequential flow id.
Definition:
flow-id-tag.cc:95
ns3::FlowIdTag::Serialize
virtual void Serialize(TagBuffer buf) const
Definition:
flow-id-tag.cc:51
ns3::FlowIdTag::m_flowId
uint32_t m_flowId
Flow ID.
Definition:
flow-id-tag.h:64
ns3::FlowIdTag::Print
virtual void Print(std::ostream &os) const
Definition:
flow-id-tag.cc:63
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:37
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
network
utils
flow-id-tag.h
Generated on Tue Feb 6 2024 19:21:25 for ns-3 by
1.9.1