expose NDNLPv2 tags as LocalControlHeader API More...
#include <tags.hpp>
Public Types | |
enum | CachingPolicy : uint8_t { INVALID_POLICY = 0, NO_CACHE = 1 } |
Public Member Functions | |
DEPRECATED (explicit LocalControlHeaderFacade(TagHost &pkt)) | |
bool | hasIncomingFaceId () const |
uint64_t | getIncomingFaceId () const |
void | setIncomingFaceId (uint64_t incomingFaceId) |
bool | hasNextHopFaceId () const |
uint64_t | getNextHopFaceId () const |
void | setNextHopFaceId (uint64_t nextHopFaceId) |
bool | hasCachingPolicy () const |
CachingPolicy | getCachingPolicy () const |
void | setCachingPolicy (CachingPolicy cachingPolicy) |
expose NDNLPv2 tags as LocalControlHeader API
This class has the same public API as ndn::nfd::LocalControlHeader, but internally accesses IncomingFaceIdTag, NextHopFaceIdTag, CachePolicyTag on the host packet.
enum ndn::lp::LocalControlHeaderFacade::CachingPolicy : uint8_t |
ndn::lp::LocalControlHeaderFacade::DEPRECATED | ( | explicit | LocalControlHeaderFacadeTagHost &pkt | ) |
bool ndn::lp::LocalControlHeaderFacade::hasIncomingFaceId | ( | ) | const |
Definition at line 38 of file tags.cpp.
References ndn::TagHost::getTag().
uint64_t ndn::lp::LocalControlHeaderFacade::getIncomingFaceId | ( | ) | const |
Definition at line 44 of file tags.cpp.
References ndn::TagHost::getTag(), and ndn::nfd::INVALID_FACE_ID.
void ndn::lp::LocalControlHeaderFacade::setIncomingFaceId | ( | uint64_t | incomingFaceId | ) |
Definition at line 54 of file tags.cpp.
References ndn::nfd::INVALID_FACE_ID, ndn::TagHost::removeTag(), and ndn::TagHost::setTag().
bool ndn::lp::LocalControlHeaderFacade::hasNextHopFaceId | ( | ) | const |
Definition at line 66 of file tags.cpp.
References ndn::TagHost::getTag().
uint64_t ndn::lp::LocalControlHeaderFacade::getNextHopFaceId | ( | ) | const |
Definition at line 72 of file tags.cpp.
References ndn::TagHost::getTag(), and ndn::nfd::INVALID_FACE_ID.
void ndn::lp::LocalControlHeaderFacade::setNextHopFaceId | ( | uint64_t | nextHopFaceId | ) |
Definition at line 82 of file tags.cpp.
References ndn::nfd::INVALID_FACE_ID, ndn::TagHost::removeTag(), and ndn::TagHost::setTag().
bool ndn::lp::LocalControlHeaderFacade::hasCachingPolicy | ( | ) | const |
Definition at line 94 of file tags.cpp.
References ndn::TagHost::getTag().
LocalControlHeaderFacade::CachingPolicy ndn::lp::LocalControlHeaderFacade::getCachingPolicy | ( | ) | const |
Definition at line 100 of file tags.cpp.
References ndn::TagHost::getTag(), INVALID_POLICY, ndn::lp::NO_CACHE, and NO_CACHE.
void ndn::lp::LocalControlHeaderFacade::setCachingPolicy | ( | CachingPolicy | cachingPolicy | ) |
Definition at line 115 of file tags.cpp.
References ndn::lp::tlv::CachePolicy, ndn::lp::NO_CACHE, NO_CACHE, ndn::TagHost::removeTag(), and ndn::TagHost::setTag().