Plasma Engine  2.0
Loading...
Searching...
No Matches
IterateBits.h
1#include <Foundation/Containers/Implementation/BitIterator.h>
2
8template <typename DataType, bool ReturnsIndex, typename ReturnType = DataType>
10{
11 explicit plIterateBits(DataType data)
12 {
13 m_Data = data;
14 }
15
17 {
19 };
20
22 {
24 };
25
26 DataType m_Data = {};
27};
28
40template <typename DataType, typename ReturnType = DataType>
41struct plIterateBitValues : public plIterateBits<DataType, false, ReturnType>
42{
43 explicit plIterateBitValues(DataType data)
45 {
46 }
47};
48
60template <typename DataType, typename ReturnType = DataType>
61struct plIterateBitIndices : public plIterateBits<DataType, true, ReturnType>
62{
63 explicit plIterateBitIndices(DataType data)
65 {
66 }
67};
Definition BitIterator.h:27
Helper class to iterate over the bit indices of an integer. The class can iterate over the bits of an...
Definition IterateBits.h:62
Helper class to iterate over the bit values of an integer. The class can iterate over the bits of any...
Definition IterateBits.h:42
Definition IterateBits.h:10