NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::SimpleTag< T, TypeId > Class Template Reference

provides a tag type for simple types More...

#include <tag.hpp>

Inheritance diagram for ndn::SimpleTag< T, TypeId >:
Collaboration diagram for ndn::SimpleTag< T, TypeId >:

Public Member Functions

 SimpleTag (const T &value)
 explicitly convertible from T More...
 
 operator T () const
 implicitly convertible to T More...
 
const T & get () const
 
- Public Member Functions inherited from ndn::Tag
virtual ~Tag ()
 

Static Public Member Functions

static constexpr int getTypeId ()
 
- Static Public Member Functions inherited from ndn::Tag
static constexpr int getTypeId ()
 

Detailed Description

template<typename T, int TypeId>
class ndn::SimpleTag< T, TypeId >

provides a tag type for simple types

Template Parameters
Tthe value type
TypeIdthe TypeId

Definition at line 58 of file tag.hpp.

Constructor & Destructor Documentation

◆ SimpleTag()

template<typename T , int TypeId>
ndn::SimpleTag< T, TypeId >::SimpleTag ( const T &  value)
inlineexplicit

explicitly convertible from T

Definition at line 70 of file tag.hpp.

Member Function Documentation

◆ getTypeId()

template<typename T , int TypeId>
static constexpr int ndn::SimpleTag< T, TypeId >::getTypeId ( )
inlinestatic

Definition at line 62 of file tag.hpp.

◆ operator T()

template<typename T , int TypeId>
ndn::SimpleTag< T, TypeId >::operator T ( ) const
inline

implicitly convertible to T

Returns
a copy of the enclosed value

Definition at line 78 of file tag.hpp.

◆ get()

template<typename T , int TypeId>
const T& ndn::SimpleTag< T, TypeId >::get ( ) const
inline
Returns
the enclosed value

Definition at line 86 of file tag.hpp.

Referenced by ndn::security::v2::CertificateFetcherDirectFetch::doFetch(), and nfd::cs::Cs::insert().


The documentation for this class was generated from the following file: