Sux
|
#include <DynamicBitVector.hpp>
Public Member Functions | |
virtual | ~DynamicBitVector ()=default |
virtual uint64_t | update (size_t index, uint64_t word)=0 |
virtual bool | set (size_t index)=0 |
virtual bool | clear (size_t index)=0 |
virtual bool | toggle (size_t index)=0 |
virtual size_t | bitCount () const =0 |
An interface for all classes implementating dynamic bit vectors.
We suggest to make every implementation of this interface serializable and deserializable by overriding the standard overloaded operators:
|
virtualdefault |
|
pure virtual |
Returns an estimate of the size (in bits) of this structure.
Implemented in sux::bits::StrideDynRankSel< SPS, WORDS, AT >, and sux::bits::WordDynRankSel< SPS, AT >.
|
pure virtual |
Clear (set to 0) a given bit in the bitvector.
index | index (in bits) in the bitvector. |
Implemented in sux::bits::StrideDynRankSel< SPS, WORDS, AT >, and sux::bits::WordDynRankSel< SPS, AT >.
|
pure virtual |
Set (set to 1) a given bit in the bitvector.
index | index (in bits) in the bitvector. |
Implemented in sux::bits::StrideDynRankSel< SPS, WORDS, AT >, and sux::bits::WordDynRankSel< SPS, AT >.
|
pure virtual |
Change the value of a given bit in the bitvector.
index | index (in bits) in the bitvector. |
Implemented in sux::bits::StrideDynRankSel< SPS, WORDS, AT >, and sux::bits::WordDynRankSel< SPS, AT >.
|
pure virtual |
Replace a given word in the bitvector.
index | index (in words) in the bitvector. |
word | new value for bitvector[index] . |
Implemented in sux::bits::StrideDynRankSel< SPS, WORDS, AT >, and sux::bits::WordDynRankSel< SPS, AT >.