Base class to store tag information (e.g., inside Interest and Data packets) More...
#include <tag-host.hpp>
Public Member Functions | |
template<typename T > | |
shared_ptr< T > | getTag () const |
get a tag item More... | |
template<typename T > | |
void | setTag (shared_ptr< T > tag) const |
set a tag item More... | |
template<typename T > | |
void | removeTag () const |
remove tag item More... | |
Base class to store tag information (e.g., inside Interest and Data packets)
Definition at line 34 of file tag-host.hpp.
|
inline |
get a tag item
T | type of the tag, which must be a subclass of ndn::Tag |
nullptr | if no Tag of type T is stored |
Definition at line 67 of file tag-host.hpp.
Referenced by nfd::fw::ClientControlStrategy::afterReceiveInterest(), nfd::FibManager::FibManager(), nfd::face::GenericLinkService::GenericLinkService(), ndn::lp::LocalControlHeaderFacade::getCachingPolicy(), ndn::lp::LocalControlHeaderFacade::getIncomingFaceId(), ndn::lp::LocalControlHeaderFacade::getNextHopFaceId(), ndn::lp::LocalControlHeaderFacade::hasCachingPolicy(), ndn::lp::LocalControlHeaderFacade::hasIncomingFaceId(), ndn::lp::LocalControlHeaderFacade::hasNextHopFaceId(), nfd::cs::Cs::insert(), and nfd::FaceManager::setConfigFile().
|
inline |
set a tag item
T | type of the tag, which must be a subclass of ndn::Tag |
Definition at line 80 of file tag-host.hpp.
Referenced by nfd::face::GenericLinkService::GenericLinkService(), ndn::lp::LocalControlHeaderFacade::setCachingPolicy(), ndn::lp::LocalControlHeaderFacade::setIncomingFaceId(), ndn::lp::LocalControlHeaderFacade::setNextHopFaceId(), and nfd::Forwarder::startProcessNack().
|
inline |
remove tag item
Definition at line 94 of file tag-host.hpp.
Referenced by ndn::lp::LocalControlHeaderFacade::setCachingPolicy(), ndn::lp::LocalControlHeaderFacade::setIncomingFaceId(), and ndn::lp::LocalControlHeaderFacade::setNextHopFaceId().