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-ns3.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#ifndef NDN_NS3_HPP
21
#define NDN_NS3_HPP
22
23
#include "ns3/packet.h"
24
#include "ns3/ptr.h"
25
#include <memory>
26
27
namespace
ns3
{
28
namespace
ndn
{
29
30
class
Convert
{
31
public
:
32
template
<
class
T>
33
static
std::shared_ptr<const T>
34
FromPacket
(Ptr<Packet> packet);
35
36
template
<
class
T>
37
static
Ptr<Packet>
38
ToPacket
(
const
T& pkt);
39
40
static
uint32_t
41
getPacketType
(Ptr<const Packet> packet);
42
};
43
44
}
// namespace ndn
45
}
// namespace ns3
46
47
#endif
ns3::ndn::Convert::ToPacket
static Ptr< Packet > ToPacket(const T &pkt)
Definition:
ndn-ns3.cpp:53
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ns3::ndn::Convert
Definition:
ndn-ns3.hpp:30
ns3::ndn::Convert::FromPacket
static std::shared_ptr< const T > FromPacket(Ptr< Packet > packet)
Definition:
ndn-ns3.cpp:34
ns3::ndn::Convert::getPacketType
static uint32_t getPacketType(Ptr< const Packet > packet)
Definition:
ndn-ns3.cpp:78
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ndnSIM
model
ndn-ns3.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12