Public Member Functions | |
BitWriter () | |
BitWriter (const string &seed) | |
void | encode (size_t value, size_t outof) |
void | write_bits (int data, int count) |
string & | freeze () |
Private Attributes | |
string | buf |
int | n_bits |
unsigned int | acc |
Definition at line 69 of file flint_positionlist.cc.
BitWriter::BitWriter | ( | ) | [inline] |
Definition at line 75 of file flint_positionlist.cc.
BitWriter::BitWriter | ( | const string & | seed | ) | [inline] |
Definition at line 76 of file flint_positionlist.cc.
void BitWriter::encode | ( | size_t | value, | |
size_t | outof | |||
) | [inline] |
Definition at line 77 of file flint_positionlist.cc.
References Assert, my_fls(), and write_bits().
Referenced by encode_interpolative(), and FlintPositionListTable::set_positionlist().
void BitWriter::write_bits | ( | int | data, | |
int | count | |||
) | [inline] |
string& BitWriter::freeze | ( | ) | [inline] |
Definition at line 115 of file flint_positionlist.cc.
References acc, buf, and n_bits.
Referenced by FlintPositionListTable::set_positionlist().
string BitWriter::buf [private] |
int BitWriter::n_bits [private] |
unsigned int BitWriter::acc [private] |