The data structure holding bit data operated on by Rank
and Select
.
More...
#include "nn/nlib/SmartBitmap.h"
template<size_t N, class BIT = uint32_t>
class nn::nlib::SmartBitmap< N, BIT >
The data structure holding bit data operated on by Rank
and Select
.
- Template Parameters
-
N | The size of the bit data (N bits). |
- Description
- Holds the instance of the bit data in a data member. This class is suited for the dynamic creation of bit data.
SmartBitmap<10> bmp;
bmp.Set(0);
bmp.Set(4);
bmp.Set(7);
bmp.Rank1(4);
bmp.Rank1(10000);
bmp.Select1(2);
bmp.Select1(3);
- Examples:
- succinct/bitvector/bitvector.cpp.
Definition at line 145 of file SmartBitmap.h.
The documentation for this class was generated from the following file: