Iterate over the positive positions one at a time. More...
#include <bitvector.h>
Public Member Functions | |
void | init (const ibis::bitvector &) |
Initialize the data structure. The. | |
void | next () |
Move on to the next bit that is 1. | |
ibis::bitvector::word_t | operator* () const |
Operator to retrieve the position of the current bit. More... | |
pit (const ibis::bitvector &bv) | |
void | skip (unsigned) |
Skip over next k positive positions. More... | |
Iterate over the positive positions one at a time.
A positive position is the position where a bit is 1.
This class iterates over all the positive positions. Immediately after initialization, the "current" bit is the first bit that is 1.
|
inline |
Operator to retrieve the position of the current bit.
It returns the current position or 0xFFFFFFFFU when there is no bit to report or the object is not initialized.
|
inline |
Skip over next k positive positions.
It is equivalent to call the function next k times.