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
ipv6-option-demux.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2007-2009 Strasbourg University
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: David Gross <gdavid.devel@gmail.com>
7
*/
8
9
#ifndef IPV6_OPTION_DEMUX_H
10
#define IPV6_OPTION_DEMUX_H
11
12
#include "ns3/object.h"
13
#include "ns3/ptr.h"
14
15
#include <list>
16
17
namespace
ns3
18
{
19
20
class
Ipv6Option;
21
class
Node;
22
23
/**
24
* \ingroup ipv6HeaderExt
25
*
26
* \brief IPv6 Option Demux.
27
*/
28
class
Ipv6OptionDemux
:
public
Object
29
{
30
public
:
31
/**
32
* \brief The interface ID.
33
* \return type ID
34
*/
35
static
TypeId
GetTypeId
();
36
37
/**
38
* \brief Constructor.
39
*/
40
Ipv6OptionDemux
();
41
42
/**
43
* \brief Destructor.
44
*/
45
~Ipv6OptionDemux
()
override
;
46
47
/**
48
* \brief Set the node.
49
* \param node the node to set
50
*/
51
void
SetNode
(
Ptr<Node>
node);
52
53
/**
54
* \brief Insert a new IPv6 Option.
55
* \param option the option to insert
56
*/
57
void
Insert
(
Ptr<Ipv6Option>
option);
58
59
/**
60
* \brief Get the option corresponding to optionNumber.
61
* \param optionNumber the option number of the option to retrieve
62
* \return a matching IPv6 option
63
*/
64
Ptr<Ipv6Option>
GetOption
(
int
optionNumber);
65
66
/**
67
* \brief Remove an option from this demux.
68
* \param option pointer on the option to remove
69
*/
70
void
Remove
(
Ptr<Ipv6Option>
option);
71
72
protected
:
73
/**
74
* \brief Dispose this object.
75
*/
76
void
DoDispose
()
override
;
77
78
private
:
79
/**
80
* \brief Container of the IPv6 Options types.
81
*/
82
typedef
std::list<Ptr<Ipv6Option>>
Ipv6OptionList_t
;
83
84
/**
85
* \brief List of IPv6 Options supported.
86
*/
87
Ipv6OptionList_t
m_options
;
88
89
/**
90
* \brief The node.
91
*/
92
Ptr<Node>
m_node
;
93
};
94
95
}
/* namespace ns3 */
96
97
#endif
/* IPV6_OPTION_DEMUX_H */
ns3::Ipv6OptionDemux
IPv6 Option Demux.
Definition
ipv6-option-demux.h:29
ns3::Ipv6OptionDemux::Ipv6OptionDemux
Ipv6OptionDemux()
Constructor.
Definition
ipv6-option-demux.cc:38
ns3::Ipv6OptionDemux::Insert
void Insert(Ptr< Ipv6Option > option)
Insert a new IPv6 Option.
Definition
ipv6-option-demux.cc:66
ns3::Ipv6OptionDemux::m_node
Ptr< Node > m_node
The node.
Definition
ipv6-option-demux.h:92
ns3::Ipv6OptionDemux::SetNode
void SetNode(Ptr< Node > node)
Set the node.
Definition
ipv6-option-demux.cc:60
ns3::Ipv6OptionDemux::GetTypeId
static TypeId GetTypeId()
The interface ID.
Definition
ipv6-option-demux.cc:25
ns3::Ipv6OptionDemux::~Ipv6OptionDemux
~Ipv6OptionDemux() override
Destructor.
Definition
ipv6-option-demux.cc:42
ns3::Ipv6OptionDemux::Ipv6OptionList_t
std::list< Ptr< Ipv6Option > > Ipv6OptionList_t
Container of the IPv6 Options types.
Definition
ipv6-option-demux.h:82
ns3::Ipv6OptionDemux::Remove
void Remove(Ptr< Ipv6Option > option)
Remove an option from this demux.
Definition
ipv6-option-demux.cc:85
ns3::Ipv6OptionDemux::m_options
Ipv6OptionList_t m_options
List of IPv6 Options supported.
Definition
ipv6-option-demux.h:87
ns3::Ipv6OptionDemux::DoDispose
void DoDispose() override
Dispose this object.
Definition
ipv6-option-demux.cc:47
ns3::Ipv6OptionDemux::GetOption
Ptr< Ipv6Option > GetOption(int optionNumber)
Get the option corresponding to optionNumber.
Definition
ipv6-option-demux.cc:72
ns3::Object
A base class which provides memory management and object aggregation.
Definition
object.h:78
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition
mpi-test-fixtures.h:37
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
internet
model
ipv6-option-demux.h
Generated on Fri Nov 8 2024 13:59:01 for ns-3 by
1.11.0