NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndnlp-sequence-generator.cpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
25
#include "
ndnlp-sequence-generator.hpp
"
26
27
namespace
nfd
{
28
namespace
ndnlp {
29
30
SequenceBlock::SequenceBlock
(uint64_t start,
size_t
count)
31
: m_start(start)
32
, m_count(count)
33
{
34
}
35
36
SequenceGenerator::SequenceGenerator
()
37
: m_next(0)
38
{
39
}
40
41
SequenceBlock
42
SequenceGenerator::nextBlock
(
size_t
count)
43
{
44
SequenceBlock
sb(m_next, count);
45
m_next += count;
46
return
sb;
47
}
48
49
}
// namespace ndnlp
50
}
// namespace nfd
ndnlp-sequence-generator.hpp
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
nfd::ndnlp::SequenceBlock
represents a block of sequence numbers
Definition:
ndnlp-sequence-generator.hpp:35
nfd::ndnlp::SequenceGenerator::nextBlock
SequenceBlock nextBlock(size_t count)
generates a block of consecutive sequence numbers
Definition:
ndnlp-sequence-generator.cpp:42
nfd::ndnlp::SequenceBlock::SequenceBlock
SequenceBlock(uint64_t start, size_t count)
Definition:
ndnlp-sequence-generator.cpp:30
nfd::ndnlp::SequenceGenerator::SequenceGenerator
SequenceGenerator()
Definition:
ndnlp-sequence-generator.cpp:36
ndnSIM
NFD
daemon
face
ndnlp-sequence-generator.cpp
Generated on Fri Feb 23 2018 12:30:55 for ndnSIM by
1.8.14