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.
shared_ptr< T > ndn::TagHost::getTag | ( | ) | const |
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 66 of file tag-host.hpp.
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveData(), nfd::fw::SelfLearningStrategy::afterReceiveInterest(), ndn::security::v2::validator_config::Checker::check(), ndn::security::v2::CertificateFetcherDirectFetch::doFetch(), nfd::RibManager::enableLocalFields(), nfd::FibManager::FibManager(), ndn::security::v2::getKeyLocatorName(), nfd::getSignerFromTag(), nfd::cs::Cs::insert(), nfd::Forwarder::onContentStoreHit(), nfd::Forwarder::onContentStoreMiss(), nfd::fw::Strategy::sendInterest(), and nfd::updateLinkServiceOptions().
void ndn::TagHost::setTag | ( | shared_ptr< T > | tag | ) | const |
set a tag item
T | type of the tag, which must be a subclass of ndn::Tag |
Definition at line 79 of file tag-host.hpp.
References nonstd::optional_lite::std11::move().
Referenced by nfd::fw::SelfLearningStrategy::afterReceiveInterest(), ndn::security::v2::CertificateFetcherDirectFetch::doFetch(), nfd::Forwarder::Forwarder(), nfd::Forwarder::onContentStoreHit(), nfd::Forwarder::onIncomingData(), nfd::Forwarder::onIncomingNack(), nfd::fw::Strategy::sendData(), and ndn::PacketBase::setCongestionMark().
void ndn::TagHost::removeTag | ( | ) | const |
remove tag item
Definition at line 93 of file tag-host.hpp.
Referenced by nfd::fw::Strategy::sendInterest().