- uint select_next1_unsafe(uint i){
- return selects3_selectnext(&sd,i);
- };
- protected:
- selects3 sd;
- static_bitsequence_sdarray();
+ inline uint rank(uint i) {
+ if(i>=len) return -1;
+ if(ones)
+ return selects3_rank(&this->sd, i);
+ else
+ return 0;
+ }
+
+ inline uint select_next(uint i) {
+ return selects3_selectnext(&this->sd,i);
+ }
+
+ uint size();
+ int save(FILE * fp);
+ static static_bitsequence_sdarray * load(FILE * fp);