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

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

Static Public Member Functions

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

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>
constexpr ndn::SimpleTag< T, TypeId >::SimpleTag ( const T &  value)
inlineexplicitnoexcept

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 ( )
inlinestaticnoexcept

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>
constexpr const T& ndn::SimpleTag< T, TypeId >::get ( ) const
inlinenoexcept

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