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...
 
const T & get () const
 
 operator T () const
 implicitly convertible to T More...
 

Static Public Member Functions

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

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

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.

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

Definition at line 62 of file tag.hpp.

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.