rili::stream::ReadableCustomIterator< T > Class Template Reference
Inheritance diagram for rili::stream::ReadableCustomIterator< T >:
Collaboration diagram for rili::stream::ReadableCustomIterator< T >:
Public Member Functions | |
ReadableCustomIterator () | |
ReadableCustomIterator (ReadableCustomIterator const &other)=default | |
ReadableCustomIterator & | operator= (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 |
ReadableCustomIterator & | operator++ () |
ReadableCustomIterator | operator++ (int) |
Constructor & Destructor Documentation
template<typename T >
|
inline |
ReadableCustomIterator create iterator which can be used as end() of stream.
template<typename T >
|
default |
- Parameters
-
other
template<typename T >
|
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 >
|
inline |
operator != check if iterator operate on different readable stream object
- Parameters
-
other
- Returns
template<typename T >
|
inline |
operator * give access to current iterator value fetched by generator
- Returns
- value
template<typename T >
|
inline |
operator ++ try fetch next value from stream using generator
- Returns
template<typename T >
|
inline |
operator ++ try fetch next value from stream using generator
- Returns
template<typename T >
|
inline |
operator -> give access to current iterator value pointer fetched by generator
- Returns
- pointer to value
template<typename T >
|
default |
operator =
- Parameters
-
other
- Returns
template<typename T >
|
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