NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: 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
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
h
i
k
l
m
n
o
p
q
r
s
t
u
w
+
Typedefs
a
b
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
+
Enumerator
a
d
e
f
g
i
k
l
m
n
p
r
s
u
w
+
Related Functions
b
c
d
f
i
k
l
n
o
p
s
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
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
l
m
n
p
r
s
u
v
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ndn-header.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDNSIM_NDN_HEADER_HPP
21
#define NDNSIM_NDN_HEADER_HPP
22
23
#include "ns3/header.h"
24
25
#include "
ndn-common.hpp
"
26
27
namespace
ns3
{
28
namespace
ndn
{
29
30
template
<
class
Pkt>
31
class
PacketHeader
:
public
Header {
32
public
:
33
static
ns3::TypeId
34
GetTypeId
();
35
36
virtual
TypeId
37
GetInstanceTypeId
(
void
)
const
;
38
39
PacketHeader
();
40
41
PacketHeader
(
const
Pkt& packet);
42
43
virtual
uint32_t
44
GetSerializedSize
(
void
)
const
;
45
46
virtual
void
47
Serialize
(ns3::Buffer::Iterator start)
const
;
48
49
virtual
uint32_t
50
Deserialize
(ns3::Buffer::Iterator start);
51
52
virtual
void
53
Print
(std::ostream& os)
const
;
54
55
shared_ptr<const Pkt>
56
getPacket
();
57
58
private
:
59
shared_ptr<const Pkt> m_packet;
60
};
61
62
}
// namespace ndn
63
}
// namespace ns3
64
65
#endif // NDNSIM_NDN_HEADER_HPP
ns3::ndn::PacketHeader::PacketHeader
PacketHeader()
Definition:
ndn-header.cpp:66
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::PacketHeader::Deserialize
virtual uint32_t Deserialize(ns3::Buffer::Iterator start)
Definition:
ndn-header.cpp:118
ns3::ndn::PacketHeader::GetTypeId
static ns3::TypeId GetTypeId()
ns3::ndn::PacketHeader::getPacket
shared_ptr< const Pkt > getPacket()
Definition:
ndn-header.cpp:143
ns3::ndn::PacketHeader::GetSerializedSize
virtual uint32_t GetSerializedSize(void) const
Definition:
ndn-header.cpp:78
ns3::ndn::PacketHeader::Print
virtual void Print(std::ostream &os) const
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::PacketHeader::Serialize
virtual void Serialize(ns3::Buffer::Iterator start) const
Definition:
ndn-header.cpp:85
ns3::ndn::PacketHeader::GetInstanceTypeId
virtual TypeId GetInstanceTypeId(void) const
Definition:
ndn-header.cpp:60
ns3::ndn::PacketHeader
Definition:
ndn-header.hpp:31
ndn-common.hpp
ndnSIM
model
ndn-header.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12