ndn::lp::Nack Class Reference

represents a Network Nack More...

#include <nack.hpp>

Inheritance diagram for ndn::lp::Nack:
[legend]
Collaboration diagram for ndn::lp::Nack:
[legend]

Public Member Functions

 Nack ()=default
 
 Nack (const Interest &interest)
 
 Nack (Interest &&interest)
 
const InterestgetInterest () const
 
InterestgetInterest ()
 
const NackHeadergetHeader () const
 
NackHeadergetHeader ()
 
NacksetHeader (const NackHeader &header)
 
NacksetHeader (NackHeader &&header)
 
NackReason getReason () const
 
NacksetReason (NackReason reason)
 
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

represents a Network Nack

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

Definition at line 40 of file nack.hpp.

Constructor & Destructor Documentation

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

Definition at line 29 of file nack.cpp.

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

Definition at line 34 of file nack.cpp.

Member Function Documentation

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

Definition at line 65 of file nack.hpp.

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

Definition at line 71 of file nack.hpp.

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

Definition at line 53 of file nack.hpp.

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

Definition at line 59 of file nack.hpp.

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

Definition at line 92 of file nack.hpp.

template<typename T >
shared_ptr< T > ndn::TagHost::getTag ( ) const
inlineinherited

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 67 of file tag-host.hpp.

template<typename T >
void ndn::TagHost::removeTag ( ) const
inlineinherited

remove tag item

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

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

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

Definition at line 77 of file nack.hpp.

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

Definition at line 84 of file nack.hpp.

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

Definition at line 98 of file nack.hpp.

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

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 80 of file tag-host.hpp.