NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
Enumerations
+
Enumerator
a
b
c
d
e
f
h
i
k
l
m
n
o
p
q
r
s
u
v
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
i
k
l
n
p
r
s
u
w
+
Related Functions
b
c
d
e
f
g
i
k
l
m
n
o
p
s
v
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
u
v
w
+
Functions
c
f
h
m
r
s
u
w
+
Variables
a
c
d
g
k
l
n
p
r
s
Typedefs
+
Macros
b
d
e
f
i
l
m
n
p
r
s
u
v
▼
ndnSIM
ndnSIM documentation
All Attributes
All GlobalValues
All LogComponents
All TraceSources
Todo List
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ndn-ns3-packet-tag.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_NS3_PACKET_TAG_HPP
21
#define NDN_NS3_PACKET_TAG_HPP
22
23
#include "ns3/packet.h"
24
#include "ns3/ptr.h"
25
#include <ndn-cxx/tag.hpp>
26
27
namespace
ns3
{
28
namespace
ndn
{
29
30
class
Ns3PacketTag
:
public
::ndn::Tag
{
31
public
:
32
static
size_t
33
getTypeId
()
34
{
35
return
0xaee87802;
// md5("Ns3PacketTag")[0:8]
36
}
37
38
Ns3PacketTag
(Ptr<const Packet> packet)
39
: m_packet(packet)
40
{
41
}
42
43
Ptr<const Packet>
44
getPacket
()
const
45
{
46
return
m_packet;
47
}
48
49
private
:
50
Ptr<const Packet> m_packet;
51
};
52
53
}
// namespace ndn
54
}
// namespace ns3
55
56
#endif // NDN_NS3_PACKET_TAG_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::Ns3PacketTag::getPacket
Ptr< const Packet > getPacket() const
Definition:
ndn-ns3-packet-tag.hpp:44
ns3::ndn::Ns3PacketTag::Ns3PacketTag
Ns3PacketTag(Ptr< const Packet > packet)
Definition:
ndn-ns3-packet-tag.hpp:38
ns3::ndn::Ns3PacketTag::getTypeId
static size_t getTypeId()
Definition:
ndn-ns3-packet-tag.hpp:33
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::Ns3PacketTag
Definition:
ndn-ns3-packet-tag.hpp:30
ndn::Tag
Base class for packet tags that can hold any arbitrary information.
Definition:
tag.hpp:30
ndnSIM
utils
ndn-ns3-packet-tag.hpp
Generated on Wed Jan 11 2017 18:17:15 for ndnSIM by
1.8.13