NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
tags.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22 #ifndef NDN_CXX_LP_TAGS_HPP
23 #define NDN_CXX_LP_TAGS_HPP
24 
25 #include "cache-policy.hpp"
26 #include "../tag-host.hpp"
27 
28 namespace ndn {
29 namespace lp {
30 
37 
44 
51 
52 
53 #define NDN_LP_KEEP_LOCAL_CONTROL_HEADER
54 
55 #ifdef NDN_LP_KEEP_LOCAL_CONTROL_HEADER
56 
65 {
66 public:
67  DEPRECATED(
68  explicit
70 
71  bool
72  hasIncomingFaceId() const;
73 
74  uint64_t
75  getIncomingFaceId() const;
76 
77  void
78  setIncomingFaceId(uint64_t incomingFaceId);
79 
80  bool
81  hasNextHopFaceId() const;
82 
83  uint64_t
84  getNextHopFaceId() const;
85 
86  void
87  setNextHopFaceId(uint64_t nextHopFaceId);
88 
89  bool
90  hasCachingPolicy() const;
91 
92  enum CachingPolicy : uint8_t {
95  };
96 
98  getCachingPolicy() const;
99 
100  void
101  setCachingPolicy(CachingPolicy cachingPolicy);
102 
103 private:
104  TagHost& m_pkt;
105 };
106 #endif // NDN_LP_KEEP_LOCAL_CONTROL_HEADER
107 
108 } // namespace lp
109 } // namespace ndn
110 
111 #endif // NDN_CXX_LP_TAGS_HPP
SimpleTag< CachePolicy, 12 > CachePolicyTag
Definition: tags.hpp:50
SimpleTag< uint64_t, 10 > IncomingFaceIdTag
Definition: tags.hpp:36
Copyright (c) 2011-2015 Regents of the University of California.
DEPRECATED(explicit LocalControlHeaderFacade(TagHost &pkt))
Base class to store tag information (e.g., inside Interest and Data packets)
Definition: tag-host.hpp:34
bool hasIncomingFaceId() const
Definition: tags.cpp:38
uint64_t getIncomingFaceId() const
Definition: tags.cpp:44
void setCachingPolicy(CachingPolicy cachingPolicy)
Definition: tags.cpp:115
provides a tag type for simple types
Definition: tag.hpp:58
uint64_t getNextHopFaceId() const
Definition: tags.cpp:72
CachingPolicy getCachingPolicy() const
Definition: tags.cpp:100
SimpleTag< uint64_t, 11 > NextHopFaceIdTag
Definition: tags.hpp:43
void setIncomingFaceId(uint64_t incomingFaceId)
Definition: tags.cpp:54
void setNextHopFaceId(uint64_t nextHopFaceId)
Definition: tags.cpp:82
expose NDNLPv2 tags as LocalControlHeader API
Definition: tags.hpp:64