ndn::lp::PitToken Class Reference

Represent a PIT token field. More...

#include <ndn-cxx/lp/pit-token.hpp>

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

Public Member Functions

 PitToken (const std::pair< Buffer::const_iterator, Buffer::const_iterator > &value)
 Construct from header field. More...
 
template<class T >
const T * get () const noexcept
 
template<class T >
T * get () noexcept
 
 operator std::pair< Buffer::const_iterator, Buffer::const_iterator > () const
 Convert to header field. More...
 

Static Public Member Functions

static constexpr int getTypeId () noexcept
 

Public Attributes

elements
 STL member. More...
 

Detailed Description

Represent a PIT token field.

See also
https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2#PIT-Token

Definition at line 33 of file pit-token.hpp.

Constructor & Destructor Documentation

◆ PitToken()

ndn::lp::PitToken::PitToken ( const std::pair< Buffer::const_iterator, Buffer::const_iterator > &  value)
inlineexplicit

Construct from header field.

Exceptions
ndn::tlv::Errorelement length is out of range.

Definition at line 46 of file pit-token.hpp.

Member Function Documentation

◆ get() [1/2]

template<class T >
const T* ndn::Buffer::get ( ) const
inlinenoexceptinherited
Returns
const pointer to the first byte of the buffer, cast to the requested type T

Definition at line 116 of file buffer.hpp.

◆ get() [2/2]

template<class T >
T* ndn::Buffer::get ( )
inlinenoexceptinherited
Returns
pointer to the first byte of the buffer, cast to the requested type T

Definition at line 107 of file buffer.hpp.

◆ getTypeId()

static constexpr int ndn::lp::PitToken::getTypeId ( )
inlinestaticconstexprnoexcept

Definition at line 37 of file pit-token.hpp.

◆ operator std::pair< Buffer::const_iterator, Buffer::const_iterator >()

ndn::lp::PitToken::operator std::pair< Buffer::const_iterator, Buffer::const_iterator > ( ) const
inline

Convert to header field.

Exceptions
ndn::tlv::Errorelement length is out of range.

Definition at line 55 of file pit-token.hpp.

Member Data Documentation

◆ elements

T std::vector< T >::elements
inherited

STL member.