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