uTL
micro Template library
|
#include <dev_iterators.h>
Public Types | |
using | type = iterator_t |
using | iterator_category = typename dev_iterator_traits< std::output_iterator_tag, data_t, void >::iterator_category |
using | value_type = typename dev_iterator_traits< std::output_iterator_tag, data_t, void >::value_type |
using | difference_type = typename dev_iterator_traits< std::output_iterator_tag, data_t, void >::difference_type |
using | pointer = typename dev_iterator_traits< std::output_iterator_tag, data_t, void >::pointer |
using | reference = typename dev_iterator_traits< std::output_iterator_tag, data_t, void >::reference |
Public Member Functions | |
Constructor / Destructor | |
ostreamdev_it (cont_t *owner=nullptr) noexcept | |
Basic constructor. More... | |
ostreamdev_it (const iterator_t &it) noexcept | |
Basic copy constructor. More... | |
iterator_t & | operator= (const iterator_t &it) noexcept |
Basic copy assignment operator. More... | |
Public interface | |
iterator_t & | operator* () noexcept |
iterator_t & | operator= (const value_type &value) |
Value-assignment operation. Where the output method is invoked. More... | |
iterator_t & | operator++ () noexcept |
iterator_t & | operator++ (int) noexcept |
Private Types | |
using | iterator_t = ostreamdev_it< cont_t, data_t > |
Private Attributes | |
cont_t * | owner_ {nullptr} |
Definition at line 69 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::difference_type = typename dev_iterator_traits <std::output_iterator_tag, data_t, void>::difference_type |
Definition at line 78 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::iterator_category = typename dev_iterator_traits <std::output_iterator_tag, data_t, void>::iterator_category |
STL iterator traits "forwarding"
Definition at line 76 of file dev_iterators.h.
|
private |
Definition at line 70 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::pointer = typename dev_iterator_traits <std::output_iterator_tag, data_t, void>::pointer |
Definition at line 79 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::reference = typename dev_iterator_traits <std::output_iterator_tag, data_t, void>::reference |
Definition at line 80 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::type = iterator_t |
Export type as identity meta-function
Definition at line 72 of file dev_iterators.h.
using utl::ostreamdev_it< cont_t, data_t >::value_type = typename dev_iterator_traits <std::output_iterator_tag, data_t, void>::value_type |
Definition at line 77 of file dev_iterators.h.
|
inlinenoexcept |
Basic constructor.
Definition at line 96 of file dev_iterators.h.
|
inlinenoexcept |
Basic copy constructor.
Definition at line 99 of file dev_iterators.h.
|
inlinenoexcept |
Definition at line 110 of file dev_iterators.h.
|
inlinenoexcept |
Definition at line 122 of file dev_iterators.h.
|
inlinenoexcept |
Definition at line 123 of file dev_iterators.h.
|
inlinenoexcept |
Basic copy assignment operator.
Definition at line 102 of file dev_iterators.h.
|
inline |
Value-assignment operation. Where the output method is invoked.
value | An instance of Cont_t::data_type |
Definition at line 117 of file dev_iterators.h.
|
private |
Pointer to parent/owner device class. Usable iterator demands owner container in order to access data. Considering the data don't "live" in memory. A default constructed iterator will behave like end() just like the input version does.
Definition at line 84 of file dev_iterators.h.