XII Release 0.1.0
Loading...
Searching...
No Matches
xiiProcessingStreamIterator< Type > Class Template Reference

Helper template class to iterate over stream elements. More...

#include <ProcessingStreamIterator.h>

Public Member Functions

 xiiProcessingStreamIterator (const xiiProcessingStream *pStream, xiiUInt64 uiNumElements, xiiUInt64 uiStartIndex)
 Constructor.
 
Type & Current () const
 Returns a reference to the current element. Note that the behavior is undefined if HasReachedEnd() is true!
 
bool HasReachedEnd () const
 Returns true of the iterator has reached the end of the stream or the number of elements it should iterate over.
 
void Advance ()
 Advances the current pointer to the next element in the stream.
 
void Advance (xiiUInt32 uiNumElements)
 Advances the current pointer by the given number of elements.
 

Protected Attributes

void * m_pCurrentPtr = nullptr
 
void * m_pEndPtr = nullptr
 
xiiUInt64 m_uiElementStride = 0
 

Detailed Description

template<typename Type>
class xiiProcessingStreamIterator< Type >

Helper template class to iterate over stream elements.


The documentation for this class was generated from the following files: