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; -*- */
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 
37  : m_next(0)
38 {
39 }
40 
43 {
44  SequenceBlock sb(m_next, count);
45  m_next += count;
46  return sb;
47 }
48 
49 } // namespace ndnlp
50 } // namespace nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition: ndn-common.hpp:40
represents a block of sequence numbers
SequenceBlock nextBlock(size_t count)
generates a block of consecutive sequence numbers
SequenceBlock(uint64_t start, size_t count)