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

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#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 >

Copyright (c) Theophilus Eriata. All Rights Reserved.

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:
  • /home/runner/work/XII/XII/Source/Engine/Foundation/Containers/IterateBits.h