Public Member Functions | List of all members
ibis::bitvector::pit Class Reference

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...
 

Detailed Description

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.

Member Function Documentation

ibis::bitvector::word_t ibis::bitvector::pit::operator* ( ) const
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.

void ibis::bitvector::pit::skip ( unsigned  k)
inline

Skip over next k positive positions.

It is equivalent to call the function next k times.


The documentation for this class was generated from the following file:

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive