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

Public Member Functions

 ReadableIterator ()
 
 ReadableIterator (ReadableIterator const &other)=default
 
ReadableIteratoroperator= (ReadableIterator const &other)=default
 
bool operator== (ReadableIterator const &other) const
 
bool operator!= (ReadableIterator const &other) const
 
 ReadableIterator (Readable &readable)
 
const T & operator* () const
 
const T * operator-> () const
 
ReadableIteratoroperator++ ()
 
ReadableIterator operator++ (int)
 

Constructor & Destructor Documentation

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

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

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

ReadableIterator.

Parameters
other
template<typename T >
rili::stream::ReadableIterator< T >::ReadableIterator ( Readable readable)
inlineexplicit

ReadableIterator construct iterator which will use readable stream to read data and default Readable readers to featch elements from readable.

Parameters
readable- stream to use

Member Function Documentation

template<typename T >
bool rili::stream::ReadableIterator< T >::operator!= ( ReadableIterator< 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::ReadableIterator< T >::operator* ( ) const
inline

operator * give access to current iterator value

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

operator ++ try fetch next value from stream

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

operator ++ try fetch next value from stream

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

operator -> give access to current iterator value pointer

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

operator =

Parameters
other
Returns
template<typename T >
bool rili::stream::ReadableIterator< T >::operator== ( ReadableIterator< 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