NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
ndn::tlv::detail Namespace Reference

Classes

class  ReadNumber
 
class  ReadNumberFast
 Function object to read a number from ContiguousIterator. More...
 
class  ReadNumberSlow
 Function object to read a number from InputIterator. More...
 

Functions

template<typename Iterator , typename DecayedIterator = std::decay_t<Iterator>, typename ValueType = typename std::iterator_traits<DecayedIterator>::value_type>
constexpr bool shouldSelectContiguousReadNumber ()
 Determine whether to select ReadNumber implementation for ContiguousIterator. More...
 

Function Documentation

◆ shouldSelectContiguousReadNumber()

template<typename Iterator , typename DecayedIterator = std::decay_t<Iterator>, typename ValueType = typename std::iterator_traits<DecayedIterator>::value_type>
constexpr bool ndn::tlv::detail::shouldSelectContiguousReadNumber ( )

Determine whether to select ReadNumber implementation for ContiguousIterator.

This is not a full ContiguousIterator detection implementation. It returns true for the most common ContiguousIterator types used with TLV decoding function templates.

Definition at line 374 of file tlv.hpp.