Sux
|
#include <SimpleSelectHalf.hpp>
Public Member Functions | |
SimpleSelectHalf () | |
SimpleSelectHalf (const uint64_t *const bits, const uint64_t num_bits) | |
uint64_t | select (const uint64_t rank) |
uint64_t | select (const uint64_t rank, uint64_t *const next) |
size_t | bitCount () const |
A simple Select implementation based on a two-level inventory, and wired for approximately the same number of zeros and ones.
The constructors of this class only store a reference to a provided bit vector. Should the content of the bit vector change, the results will be unpredictable.
This implementation has been specifically developed to be used with EliasFano.
AT | a type of memory allocation out of sux::util::AllocType. |
|
inline |
|
inline |
Creates a new instance using a given bit vector.
bits | a bit vector of 64-bit words. |
num_bits | the length (in bits) of the bit vector. |
|
inline |
Returns an estimate of the size (in bits) of this structure.
|
inline |
|
inline |