XII Release 0.1.0
Loading...
Searching...
No Matches
xiiIterateBits< DataType, ReturnsIndex, ReturnType > Struct Template Reference

#include <IterateBits.h>

Public Member Functions

 xiiIterateBits (DataType data)
 
xiiBitIterator< DataType, ReturnsIndex, ReturnType > begin () const
 
xiiBitIterator< DataType, ReturnsIndex, ReturnType > end () const
 

Public Attributes

DataType m_Data = {}
 

Detailed Description

template<typename DataType, bool ReturnsIndex, typename ReturnType = DataType>
struct xiiIterateBits< 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. XII_BIT(value).
ReturnTypeReturned value type of the iterator.
See also
xiiIterateBitValues, xiiIterateBitIndices

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