Plasma Engine  2.0
Loading...
Searching...
No Matches
plProcessingStreamIterator< Type > Class Template Reference

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

#include <ProcessingStreamIterator.h>

Public Member Functions

 plProcessingStreamIterator (const plProcessingStream *pStream, plUInt64 uiNumElements, plUInt64 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 (plUInt32 uiNumElements)
 Advances the current pointer by the given number of elements.
 

Protected Attributes

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

Detailed Description

template<typename Type>
class plProcessingStreamIterator< Type >

Helper template class to iterate over stream elements.


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