Base class to store tag information, e.g., inside Interest and Data packets. More...
#include <ndn-cxx/detail/tag-host.hpp>
Public Member Functions | |
template<typename T > | |
std::shared_ptr< T > | getTag () const |
Get a tag item. More... | |
template<typename T > | |
void | removeTag () const |
Remove a tag item. More... | |
template<typename T > | |
void | setTag (std::shared_ptr< T > tag) const |
Set (add or replace) a tag item. More... | |
Base class to store tag information, e.g., inside Interest and Data packets.
Definition at line 36 of file tag-host.hpp.
std::shared_ptr< T > ndn::TagHost::getTag |
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 72 of file tag-host.hpp.
void ndn::TagHost::removeTag |
Remove a tag item.
T | type of the tag, which must be a subclass of ndn::Tag |
Definition at line 98 of file tag-host.hpp.
void ndn::TagHost::setTag | ( | std::shared_ptr< T > | tag | ) | const |
Set (add or replace) a tag item.
T | type of the tag, which must be a subclass of ndn::Tag |
Definition at line 84 of file tag-host.hpp.