rili::stream::WritableCustomIterator< T > Class Template Reference
Inheritance diagram for rili::stream::WritableCustomIterator< T >:
[legend]
Collaboration diagram for rili::stream::WritableCustomIterator< T >:
[legend]

Public Member Functions

 WritableCustomIterator (WritableCustomIterator const &other)=default
 
WritableCustomIteratoroperator= (WritableCustomIterator const &other)=default
 
 WritableCustomIterator (Writable &writable, std::function< Writer(T const &)> const &generator)
 
WritableCustomIteratoroperator= (T const &value)
 
WritableCustomIteratoroperator* ()
 
WritableCustomIteratoroperator++ ()
 
WritableCustomIteratoroperator++ (int)
 

Constructor & Destructor Documentation

template<typename T >
rili::stream::WritableCustomIterator< T >::WritableCustomIterator ( WritableCustomIterator< T > const &  other)
default

WritableCustomIterator.

Parameters
other
template<typename T >
rili::stream::WritableCustomIterator< T >::WritableCustomIterator ( Writable writable,
std::function< Writer(T const &)> const &  generator 
)
inline

WritableCustomIterator construct iterator which will use writable stream to write data and given generator to write elements to writable.

Parameters
writable- stream to use
generator- function to use to write elements to stream

Member Function Documentation

template<typename T >
WritableCustomIterator& rili::stream::WritableCustomIterator< T >::operator* ( )
inline

operator * actually does not dereference the iterator other than to be assigned a value with operator=

Returns
*this
template<typename T >
WritableCustomIterator& rili::stream::WritableCustomIterator< T >::operator++ ( )
inline

operator ++ This function has no required effect, neither in the iterator nor in its associated stream (streams advance automatically on insertion).

Returns
*this
template<typename T >
WritableCustomIterator& rili::stream::WritableCustomIterator< T >::operator++ ( int  )
inline

operator ++ This function has no required effect, neither in the iterator nor in its associated stream (streams advance automatically on insertion).

Returns
*this
template<typename T >
WritableCustomIterator& rili::stream::WritableCustomIterator< T >::operator= ( WritableCustomIterator< T > const &  other)
default

operator =

Parameters
other
Returns
template<typename T >
WritableCustomIterator& rili::stream::WritableCustomIterator< T >::operator= ( T const &  value)
inline

operator = try write next value to stream using given generator

Parameters
valueto convert and write
Returns

The documentation for this class was generated from the following file:
  • rili/stream/Stream.hpp