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
Classes
Files
File List
File Members
encoding-buffer.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
#ifndef NDN_ENCODING_ENCODING_BUFFER_HPP
23
#define NDN_ENCODING_ENCODING_BUFFER_HPP
24
25
#include "../common.hpp"
26
#include "
encoding-buffer-fwd.hpp
"
27
#include "
encoder.hpp
"
28
#include "
estimator.hpp
"
29
30
namespace
ndn
{
31
namespace
encoding {
32
36
template
<>
37
class
EncodingImpl
<
EncoderTag
> :
public
encoding::Encoder
38
{
39
public
:
40
explicit
41
EncodingImpl
(
size_t
totalReserve = 8800,
size_t
reserveFromBack = 400)
42
:
Encoder
(totalReserve, reserveFromBack)
43
{
44
}
45
46
explicit
47
EncodingImpl
(
const
Block
& block)
48
:
Encoder
(block)
49
{
50
}
51
};
52
56
template
<>
57
class
EncodingImpl
<
EstimatorTag
> :
public
encoding::Estimator
58
{
59
public
:
60
explicit
61
EncodingImpl
(
size_t
totalReserve = 0,
size_t
totalFromBack = 0)
62
:
Estimator
(totalReserve, totalFromBack)
63
{
64
}
65
};
66
67
}
// namespace encoding
68
}
// namespace ndn
69
70
#endif // NDN_ENCODING_ENCODING_BUFFER_HPP
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::encoding::EncodingImpl< EncoderTag >::EncodingImpl
EncodingImpl(const Block &block)
Definition:
encoding-buffer.hpp:47
ndn::encoding::EstimatorTag
static const Tag EstimatorTag
Tag for EncodingImpl to indicate that Estimator is requested Implementation of the tag may change to ...
Definition:
encoding-buffer-fwd.hpp:42
encoding-buffer-fwd.hpp
ndn::Block
Class representing a wire element of NDN-TLV packet format.
Definition:
block.hpp:43
ndn::encoding::Encoder
Helper class to perform TLV encoding Interface of this class (mostly) matches interface of Estimator ...
Definition:
encoder.hpp:36
ndn::encoding::EncodingImpl
Definition:
encoding-buffer-fwd.hpp:45
encoder.hpp
ndn::encoding::Estimator
Helper class to estimate size of TLV encoding Interface of this class (mostly) matches interface of E...
Definition:
estimator.hpp:36
ndn::encoding::EncodingImpl< EncoderTag >::EncodingImpl
EncodingImpl(size_t totalReserve=8800, size_t reserveFromBack=400)
Definition:
encoding-buffer.hpp:41
estimator.hpp
ndn::encoding::EncoderTag
static const Tag EncoderTag
Tag for EncodingImpl to indicate that Encoder is requested Implementation of the tag may change to cl...
Definition:
encoding-buffer-fwd.hpp:35
ndn::encoding::EncodingImpl< EstimatorTag >::EncodingImpl
EncodingImpl(size_t totalReserve=0, size_t totalFromBack=0)
Definition:
encoding-buffer.hpp:61
ndnSIM
ndn-cxx
src
encoding
encoding-buffer.hpp
Generated on Tue Feb 23 2016 22:18:43 for ndnSIM by
1.8.11