#include <IParticleChannelTrueFalseIterator.h>
◆ OrbazTrueBlockEnumerator()
142 : m_trueBlocks(trueBlocks)
143 , m_blockIndex(-1)
144 {
145 }
◆ proc()
- Parameters:
- int n
This is the zero based index into the BitArray of the element which is "1".
Implements BitArrayCallback.
148 {
149 int curMajorIndex = n & kMajorIndexMask;
150 if (m_blockIndex >= 0)
151 {
152 if (m_trueBlocks[m_blockIndex].GetMajorIndex() != curMajorIndex)
153 {
155 }
156 }
157 else
158 {
159 m_blockIndex = 0;
161 }
163 }
void SetMajorIndex(int index)
Definition: IParticleChannelTrueFalseIterator.h:96
void AddBlockIndex(int index)
◆ NumBlocksSet()
165{ return m_blockIndex+1; }
◆ operator=()
167 {
168 if (this != &rhs)
169 {
170 m_trueBlocks = rhs.m_trueBlocks;
171 m_blockIndex = rhs.m_blockIndex;
172 }
173 return *this;
174 }