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-fw-hop-count-tag.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20
#include "
ndn-fw-hop-count-tag.hpp
"
21
22
namespace
ns3
{
23
namespace
ndn
{
24
25
TypeId
26
FwHopCountTag::GetTypeId
()
27
{
28
static
TypeId tid =
29
TypeId(
"ns3::ndn::FwHopCountTag"
).SetParent<
Tag
>().AddConstructor<FwHopCountTag>();
30
return
tid;
31
}
32
33
TypeId
34
FwHopCountTag::GetInstanceTypeId
()
const
35
{
36
return
FwHopCountTag::GetTypeId
();
37
}
38
39
uint32_t
40
FwHopCountTag::GetSerializedSize
()
const
41
{
42
return
sizeof
(uint32_t);
43
}
44
45
void
46
FwHopCountTag::Serialize
(TagBuffer i)
const
47
{
48
i.WriteU32(m_hopCount);
49
}
50
51
void
52
FwHopCountTag::Deserialize
(TagBuffer i)
53
{
54
m_hopCount = i.ReadU32();
55
}
56
57
void
58
FwHopCountTag::Print
(std::ostream& os)
const
59
{
60
os << m_hopCount;
61
}
62
63
}
// namespace ndn
64
}
// namespace ns3
ns3::ndn::FwHopCountTag::Print
virtual void Print(std::ostream &os) const
Definition:
ndn-fw-hop-count-tag.cpp:58
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn-fw-hop-count-tag.hpp
ns3::ndn::FwHopCountTag::Serialize
virtual void Serialize(TagBuffer i) const
Definition:
ndn-fw-hop-count-tag.cpp:46
ns3::ndn::FwHopCountTag::GetInstanceTypeId
virtual TypeId GetInstanceTypeId() const
Definition:
ndn-fw-hop-count-tag.cpp:34
ns3::ndn::FwHopCountTag::Deserialize
virtual void Deserialize(TagBuffer i)
Definition:
ndn-fw-hop-count-tag.cpp:52
ns3
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
content-store-impl.cpp:38
ns3::ndn::FwHopCountTag::GetSerializedSize
virtual uint32_t GetSerializedSize() const
Definition:
ndn-fw-hop-count-tag.cpp:40
ns3::ndn::FwHopCountTag::GetTypeId
static TypeId GetTypeId(void)
Definition:
ndn-fw-hop-count-tag.cpp:26
ndn::encoding::Tag
bool Tag
Definition:
encoding-buffer-fwd.hpp:28
ndnSIM
utils
ndn-fw-hop-count-tag.cpp
Generated on Sat Nov 12 2016 16:02:54 for ndnSIM by
1.8.12