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

#include <ostream-joiner.hpp>

Public Types

typedef CharT char_type
 
typedef Traits traits_type
 
typedef std::basic_ostream< CharT, Traits > ostream_type
 
typedef std::output_iterator_tag iterator_category
 
typedef void value_type
 
typedef void difference_type
 
typedef void pointer
 
typedef void reference
 

Public Member Functions

 ostream_joiner (ostream_type &os, const DelimT &delimiter) noexcept(std::is_nothrow_copy_constructible< DelimT >::value)
 
 ostream_joiner (ostream_type &os, DelimT &&delimiter) noexcept(std::is_nothrow_move_constructible< DelimT >::value)
 
template<typename T >
ostream_joineroperator= (const T &value)
 
ostream_joineroperator* () noexcept
 
ostream_joineroperator++ () noexcept
 
ostream_joineroperator++ (int) noexcept
 

Detailed Description

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
class ndn::ostream_joiner< DelimT, CharT, Traits >

Definition at line 55 of file ostream-joiner.hpp.

Member Typedef Documentation

◆ char_type

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef CharT ndn::ostream_joiner< DelimT, CharT, Traits >::char_type

Definition at line 58 of file ostream-joiner.hpp.

◆ traits_type

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef Traits ndn::ostream_joiner< DelimT, CharT, Traits >::traits_type

Definition at line 59 of file ostream-joiner.hpp.

◆ ostream_type

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef std::basic_ostream<CharT, Traits> ndn::ostream_joiner< DelimT, CharT, Traits >::ostream_type

Definition at line 60 of file ostream-joiner.hpp.

◆ iterator_category

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef std::output_iterator_tag ndn::ostream_joiner< DelimT, CharT, Traits >::iterator_category

Definition at line 61 of file ostream-joiner.hpp.

◆ value_type

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef void ndn::ostream_joiner< DelimT, CharT, Traits >::value_type

Definition at line 62 of file ostream-joiner.hpp.

◆ difference_type

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef void ndn::ostream_joiner< DelimT, CharT, Traits >::difference_type

Definition at line 63 of file ostream-joiner.hpp.

◆ pointer

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef void ndn::ostream_joiner< DelimT, CharT, Traits >::pointer

Definition at line 64 of file ostream-joiner.hpp.

◆ reference

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
typedef void ndn::ostream_joiner< DelimT, CharT, Traits >::reference

Definition at line 65 of file ostream-joiner.hpp.

Constructor & Destructor Documentation

◆ ostream_joiner() [1/2]

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
ndn::ostream_joiner< DelimT, CharT, Traits >::ostream_joiner ( ostream_type os,
const DelimT &  delimiter 
)
inlinenoexcept

Definition at line 67 of file ostream-joiner.hpp.

◆ ostream_joiner() [2/2]

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
ndn::ostream_joiner< DelimT, CharT, Traits >::ostream_joiner ( ostream_type os,
DelimT &&  delimiter 
)
inlinenoexcept

Definition at line 73 of file ostream-joiner.hpp.

Member Function Documentation

◆ operator=()

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
template<typename T >
ostream_joiner& ndn::ostream_joiner< DelimT, CharT, Traits >::operator= ( const T &  value)
inline

Definition at line 81 of file ostream-joiner.hpp.

◆ operator*()

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
ostream_joiner& ndn::ostream_joiner< DelimT, CharT, Traits >::operator* ( )
inlinenoexcept

Definition at line 92 of file ostream-joiner.hpp.

◆ operator++() [1/2]

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
ostream_joiner& ndn::ostream_joiner< DelimT, CharT, Traits >::operator++ ( )
inlinenoexcept

Definition at line 98 of file ostream-joiner.hpp.

◆ operator++() [2/2]

template<typename DelimT, typename CharT = char, typename Traits = std::char_traits<CharT>>
ostream_joiner& ndn::ostream_joiner< DelimT, CharT, Traits >::operator++ ( int  )
inlinenoexcept

Definition at line 104 of file ostream-joiner.hpp.


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