ndn::lp::Nack Class Reference

represents a Network Nack More...

#include <ndn-cxx/lp/nack.hpp>

+ Inheritance diagram for ndn::lp::Nack:
+ Collaboration diagram for ndn::lp::Nack:

Public Member Functions

 Nack ()
 
 Nack (const Interest &interest)
 
 Nack (Interest &&interest)
 
uint64_t getCongestionMark () const
 get the value of the CongestionMark tag More...
 
NackHeadergetHeader ()
 
const NackHeadergetHeader () const
 
InterestgetInterest ()
 
const InterestgetInterest () const
 
NackReason getReason () const
 
template<typename T >
shared_ptr< T > getTag () const
 get a tag item More...
 
template<typename T >
void removeTag () const
 remove tag item More...
 
void setCongestionMark (uint64_t mark)
 set the CongestionMark tag to the specified value More...
 
NacksetHeader (const NackHeader &header)
 
NacksetHeader (NackHeader &&header)
 
NacksetReason (NackReason reason)
 
template<typename T >
void setTag (shared_ptr< T > tag) const
 set a tag item More...
 

Detailed Description

represents a Network Nack

This type binds a NackHeader and an Interest, and is intended for use in network layer.

Definition at line 38 of file nack.hpp.

Constructor & Destructor Documentation

◆ Nack() [1/3]

ndn::lp::Nack::Nack ( )
default

◆ Nack() [2/3]

ndn::lp::Nack::Nack ( const Interest interest)
explicit

Definition at line 31 of file nack.cpp.

◆ Nack() [3/3]

ndn::lp::Nack::Nack ( Interest &&  interest)
explicit

Definition at line 36 of file nack.cpp.

Member Function Documentation

◆ getCongestionMark()

uint64_t ndn::PacketBase::getCongestionMark ( ) const
inherited

get the value of the CongestionMark tag

Definition at line 28 of file packet-base.cpp.

◆ getHeader() [1/2]

NackHeader& ndn::lp::Nack::getHeader ( )
inline

Definition at line 69 of file nack.hpp.

◆ getHeader() [2/2]

const NackHeader& ndn::lp::Nack::getHeader ( ) const
inline

Definition at line 63 of file nack.hpp.

◆ getInterest() [1/2]

Interest& ndn::lp::Nack::getInterest ( )
inline

Definition at line 57 of file nack.hpp.

◆ getInterest() [2/2]

const Interest& ndn::lp::Nack::getInterest ( ) const
inline

Definition at line 51 of file nack.hpp.

◆ getReason()

NackReason ndn::lp::Nack::getReason ( ) const
inline

Definition at line 90 of file nack.hpp.

◆ getTag()

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

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.

◆ removeTag()

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

remove tag item

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

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

◆ setCongestionMark()

void ndn::PacketBase::setCongestionMark ( uint64_t  mark)
inherited

set the CongestionMark tag to the specified value

Definition at line 41 of file packet-base.cpp.

◆ setHeader() [1/2]

Nack& ndn::lp::Nack::setHeader ( const NackHeader header)
inline

Definition at line 75 of file nack.hpp.

◆ setHeader() [2/2]

Nack& ndn::lp::Nack::setHeader ( NackHeader &&  header)
inline

Definition at line 82 of file nack.hpp.

◆ setReason()

Nack& ndn::lp::Nack::setReason ( NackReason  reason)
inline

Definition at line 96 of file nack.hpp.

◆ setTag()

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

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.