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

Public Member Functions

 ReadableCustomIterator ()
 
 ReadableCustomIterator (ReadableCustomIterator const &other)=default
 
ReadableCustomIteratoroperator= (ReadableCustomIterator const &other)=default
 
bool operator== (ReadableCustomIterator const &other) const
 
bool operator!= (ReadableCustomIterator const &other) const
 
 ReadableCustomIterator (Readable &readable, std::function< Reader(T &)> const &generator)
 
const T & operator* () const
 
const T * operator-> () const
 
ReadableCustomIteratoroperator++ ()
 
ReadableCustomIterator operator++ (int)
 

Constructor & Destructor Documentation

template<typename T >
rili::stream::ReadableCustomIterator< T >::ReadableCustomIterator ( )
inline

ReadableCustomIterator create iterator which can be used as end() of stream.

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

ReadableCustomIterator.

Parameters
other
template<typename T >
rili::stream::ReadableCustomIterator< T >::ReadableCustomIterator ( Readable readable,
std::function< Reader(T &)> const &  generator 
)
inline

ReadableCustomIterator construct iterator which will use readable stream to read data and generator to featch elements from readable.

Parameters
readable- stream to use
generator- function to fetch elements from stream

Member Function Documentation

template<typename T >
bool rili::stream::ReadableCustomIterator< T >::operator!= ( ReadableCustomIterator< T > const &  other) const
inline

operator != check if iterator operate on different readable stream object

Parameters
other
Returns
template<typename T >
const T& rili::stream::ReadableCustomIterator< T >::operator* ( ) const
inline

operator * give access to current iterator value fetched by generator

Returns
value
template<typename T >
ReadableCustomIterator& rili::stream::ReadableCustomIterator< T >::operator++ ( )
inline

operator ++ try fetch next value from stream using generator

Returns
template<typename T >
ReadableCustomIterator rili::stream::ReadableCustomIterator< T >::operator++ ( int  )
inline

operator ++ try fetch next value from stream using generator

Returns
template<typename T >
const T* rili::stream::ReadableCustomIterator< T >::operator-> ( ) const
inline

operator -> give access to current iterator value pointer fetched by generator

Returns
pointer to value
template<typename T >
ReadableCustomIterator& rili::stream::ReadableCustomIterator< T >::operator= ( ReadableCustomIterator< T > const &  other)
default

operator =

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

operator == check if iterator operate on the same readable stream object

Parameters
other
Returns

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