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
36
typedef
SimpleTag<uint64_t, 10>
IncomingFaceIdTag
;
37
43
typedef
SimpleTag<uint64_t, 11>
NextHopFaceIdTag
;
44
50
typedef
SimpleTag<CachePolicy, 12>
CachePolicyTag
;
51
52
53
#define NDN_LP_KEEP_LOCAL_CONTROL_HEADER
54
55
#ifdef NDN_LP_KEEP_LOCAL_CONTROL_HEADER
56
64
class
LocalControlHeaderFacade
65
{
66
public
:
67
DEPRECATED
(
68
explicit
69
LocalControlHeaderFacade
(
TagHost
& pkt));
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 {
93
INVALID_POLICY
= 0,
94
NO_CACHE
= 1
95
};
96
97
CachingPolicy
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
ndn::lp::CachePolicyTag
SimpleTag< CachePolicy, 12 > CachePolicyTag
Definition:
tags.hpp:50
ndn::lp::IncomingFaceIdTag
SimpleTag< uint64_t, 10 > IncomingFaceIdTag
Definition:
tags.hpp:36
ndn
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-strategy-choice-helper.hpp:34
ndn::lp::LocalControlHeaderFacade::DEPRECATED
DEPRECATED(explicit LocalControlHeaderFacade(TagHost &pkt))
cache-policy.hpp
ndn::TagHost
Base class to store tag information (e.g., inside Interest and Data packets)
Definition:
tag-host.hpp:34
ndn::lp::LocalControlHeaderFacade::NO_CACHE
Definition:
tags.hpp:94
ndn::lp::LocalControlHeaderFacade::hasNextHopFaceId
bool hasNextHopFaceId() const
Definition:
tags.cpp:66
ndn::lp::LocalControlHeaderFacade::hasIncomingFaceId
bool hasIncomingFaceId() const
Definition:
tags.cpp:38
ndn::lp::LocalControlHeaderFacade::getIncomingFaceId
uint64_t getIncomingFaceId() const
Definition:
tags.cpp:44
ndn::lp::LocalControlHeaderFacade::setCachingPolicy
void setCachingPolicy(CachingPolicy cachingPolicy)
Definition:
tags.cpp:115
ndn::SimpleTag
provides a tag type for simple types
Definition:
tag.hpp:58
ndn::lp::LocalControlHeaderFacade::getNextHopFaceId
uint64_t getNextHopFaceId() const
Definition:
tags.cpp:72
ndn::lp::LocalControlHeaderFacade::CachingPolicy
CachingPolicy
Definition:
tags.hpp:92
ndn::lp::LocalControlHeaderFacade::getCachingPolicy
CachingPolicy getCachingPolicy() const
Definition:
tags.cpp:100
ndn::lp::NextHopFaceIdTag
SimpleTag< uint64_t, 11 > NextHopFaceIdTag
Definition:
tags.hpp:43
ndn::lp::LocalControlHeaderFacade::setIncomingFaceId
void setIncomingFaceId(uint64_t incomingFaceId)
Definition:
tags.cpp:54
ndn::lp::LocalControlHeaderFacade::setNextHopFaceId
void setNextHopFaceId(uint64_t nextHopFaceId)
Definition:
tags.cpp:82
ndn::lp::LocalControlHeaderFacade
expose NDNLPv2 tags as LocalControlHeader API
Definition:
tags.hpp:64
ndn::lp::LocalControlHeaderFacade::hasCachingPolicy
bool hasCachingPolicy() const
Definition:
tags.cpp:94
ndn::lp
Definition:
cache-policy.cpp:27
ndn::lp::LocalControlHeaderFacade::INVALID_POLICY
Definition:
tags.hpp:93
ndnSIM
ndn-cxx
src
lp
tags.hpp
Generated on Sat Nov 12 2016 16:02:52 for ndnSIM by
1.8.12