#include <bitstream.h>

Public Member Functions | |
| BitWriter () | |
| BitWriter (const std::string &seed) | |
| void | encode (size_t value, size_t outof) |
| std::string & | freeze () |
| void | encode_interpolative (const std::vector< Xapian::termpos > &pos, int j, int k) |
Private Attributes | |
| std::string | buf |
| int | n_bits |
| unsigned int | acc |
Definition at line 33 of file bitstream.h.
| Xapian::BitWriter::BitWriter | ( | ) | [inline] |
Definition at line 39 of file bitstream.h.
| Xapian::BitWriter::BitWriter | ( | const std::string & | seed | ) | [inline] |
Definition at line 41 of file bitstream.h.
| void Xapian::BitWriter::encode | ( | size_t | value, | |
| size_t | outof | |||
| ) |
Definition at line 72 of file bitstream.cc.
References acc, Assert, buf, my_fls(), and n_bits.
Referenced by encode_interpolative(), FlintPositionListTable::set_positionlist(), ChertPositionListTable::set_positionlist(), and BrassPositionListTable::set_positionlist().
| void Xapian::BitWriter::encode_interpolative | ( | const std::vector< Xapian::termpos > & | pos, | |
| int | j, | |||
| int | k | |||
| ) |
Definition at line 107 of file bitstream.cc.
References encode().
Referenced by FlintPositionListTable::set_positionlist(), ChertPositionListTable::set_positionlist(), and BrassPositionListTable::set_positionlist().
| std::string& Xapian::BitWriter::freeze | ( | ) | [inline] |
Definition at line 45 of file bitstream.h.
Referenced by FlintPositionListTable::set_positionlist(), ChertPositionListTable::set_positionlist(), and BrassPositionListTable::set_positionlist().
unsigned int Xapian::BitWriter::acc [private] |
std::string Xapian::BitWriter::buf [private] |
int Xapian::BitWriter::n_bits [private] |