NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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