Base class to allow simple management of packet tags. More...
#include <ndn-cxx/detail/packet-base.hpp>
Public Member Functions | |
uint64_t | getCongestionMark () const |
Get the value of the CongestionMark tag. More... | |
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... | |
void | setCongestionMark (uint64_t mark) |
Set the CongestionMark tag to the specified value. More... | |
template<typename T > | |
void | setTag (std::shared_ptr< T > tag) const |
Set (add or replace) a tag item. More... | |
Base class to allow simple management of packet tags.
Definition at line 31 of file packet-base.hpp.
uint64_t ndn::PacketBase::getCongestionMark | ( | ) | const |
Get the value of the CongestionMark tag.
Definition at line 28 of file packet-base.cpp.
|
inherited |
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.
|
inherited |
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::PacketBase::setCongestionMark | ( | uint64_t | mark | ) |
Set the CongestionMark tag to the specified value.
Definition at line 41 of file packet-base.cpp.
|
inherited |
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.