NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::TagHost Class Reference

Base class to store tag information (e.g., inside Interest and Data packets) More...

#include <tag-host.hpp>

Inheritance diagram for ndn::TagHost:

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...
 

Detailed Description

Base class to store tag information (e.g., inside Interest and Data packets)

Definition at line 34 of file tag-host.hpp.

Member Function Documentation

◆ getTag()

template<typename T >
shared_ptr< T > ndn::TagHost::getTag

get a tag item

Template Parameters
Ttype of the tag, which must be a subclass of ndn::Tag
Return values
nullptrif 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(), nfd::getSignerFromTag(), nfd::cs::Cs::insert(), and nfd::fw::Strategy::sendInterest().

◆ setTag()

template<typename T >
void ndn::TagHost::setTag ( shared_ptr< T >  tag) const

set a tag item

Template Parameters
Ttype of the tag, which must be a subclass of ndn::Tag
Note
Tag can be set even on a const tag host instance

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::fw::Strategy::sendData(), and ndn::PacketBase::setCongestionMark().

◆ removeTag()

template<typename T >
void ndn::TagHost::removeTag

remove tag item

Note
Tag can be removed even on a const tag host instance

Definition at line 93 of file tag-host.hpp.

Referenced by nfd::fw::Strategy::sendInterest().


The documentation for this class was generated from the following file: