template<typename COLLECTION>
class maxon::BaseBitSetIterator< COLLECTION >
The BaseBitSetIterator allows you to iterate over only the set bits of a bit set. Internally it stores a pointer to the bit set object and an index to the last set bit. If we have reached the end or the iterator is invalid the index will be -1 to match the specification of the bit set.
For simplicity the iterator provides only an increment operator.
it++;
it = bitSet.Begin();
PyObject * value
Definition: abstract.h:715
You can also use the iterator implicitly in a range-based for loop to iterate over the set bits:
for (
const Int bitIndex : bitSet)
{
}
Int64 Int
signed 32/64 bit int, size depends on the platform
Definition: apibase.h:187
- Template Parameters
-
COLLECTION | Type of the bit set. |