Plasma Engine  2.0
Loading...
Searching...
No Matches
plIterateBits< DataType, ReturnsIndex, ReturnType > Struct Template Reference

#include <IterateBits.h>

Public Member Functions

 plIterateBits (DataType data)
 
plBitIterator< DataType, ReturnsIndex, ReturnType > begin () const
 
plBitIterator< DataType, ReturnsIndex, ReturnType > end () const
 

Public Attributes

DataType m_Data = {}
 

Detailed Description

template<typename DataType, bool ReturnsIndex, typename ReturnType = DataType>
struct plIterateBits< DataType, ReturnsIndex, ReturnType >

Helper base class to iterate over the bit indices or bit values of an integer.

Template Parameters
DataTypeThe type of data that is being iterated over.
ReturnsIndexIf set, returns the index of the bit. Otherwise returns the value of the bit, i.e. PL_BIT(value).
ReturnTypeReturned value type of the iterator.
See also
plIterateBitValues, plIterateBitIndices

The documentation for this struct was generated from the following file: