NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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<>
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<>
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
Copyright (c) 2011-2015 Regents of the University of California.
static const Tag EstimatorTag
Tag for EncodingImpl to indicate that Estimator is requested Implementation of the tag may change to ...
Class representing a wire element of NDN-TLV packet format.
Definition: block.hpp:43
Helper class to perform TLV encoding Interface of this class (mostly) matches interface of Estimator ...
Definition: encoder.hpp:36
Helper class to estimate size of TLV encoding Interface of this class (mostly) matches interface of E...
Definition: estimator.hpp:36
EncodingImpl(size_t totalReserve=8800, size_t reserveFromBack=400)
static const Tag EncoderTag
Tag for EncodingImpl to indicate that Encoder is requested Implementation of the tag may change to cl...
EncodingImpl(size_t totalReserve=0, size_t totalFromBack=0)