|
xapian-core
2.0.0
|
Read a stream created by BitWriter. More...
#include <bitstream.h>
Collaboration diagram for Xapian::BitReader:Classes | |
| struct | DIStack |
| struct | DIState |
Public Member Functions | |
| BitReader () | |
| BitReader (const char *p_, const char *end_) | |
| void | init (const char *p_, const char *end_) |
| Xapian::termpos | decode (Xapian::termpos outof, bool force=false) |
| bool | check_all_gone () const |
| void | decode_interpolative (int j, int k, Xapian::termpos pos_j, Xapian::termpos pos_k) |
| Perform interpolative decoding between elements between j and k. More... | |
| Xapian::termpos | decode_interpolative_next () |
| Perform on-demand interpolative decoding. More... | |
Private Member Functions | |
| Xapian::termpos | read_bits (int count) |
Private Attributes | |
| const char * | p |
| const char * | end |
| int | n_bits |
| Xapian::termpos | acc |
| std::vector< DIStack > | di_stack |
| DIState | di_current |
Read a stream created by BitWriter.
Definition at line 66 of file bitstream.h.
|
inline |
Definition at line 123 of file bitstream.h.
|
inline |
Definition at line 126 of file bitstream.h.
|
inline |
Definition at line 146 of file bitstream.h.
References acc, end, n_bits, and p.
Referenced by check_glass_table().
| Xapian::termpos Xapian::BitReader::decode | ( | Xapian::termpos | outof, |
| bool | force = false |
||
| ) |
Definition at line 178 of file bitstream.cc.
References Assert, highest_order_bit(), pos, Xapian::safe_shl(), and UNSIGNED_OVERFLOW_OK.
Referenced by check_glass_table(), HoneyValueManager::delete_document(), HoneyValueManager::get_all_values(), GlassPositionListTable::positionlist_count(), and HoneyPositionTable::positionlist_count().
| void Xapian::BitReader::decode_interpolative | ( | int | j, |
| int | k, | ||
| Xapian::termpos | pos_j, | ||
| Xapian::termpos | pos_k | ||
| ) |
Perform interpolative decoding between elements between j and k.
Definition at line 229 of file bitstream.cc.
References Assert, and highest_order_bit().
Referenced by check_glass_table(), HoneyValueManager::delete_document(), and HoneyValueManager::get_all_values().
| Xapian::termpos Xapian::BitReader::decode_interpolative_next | ( | ) |
Perform on-demand interpolative decoding.
Definition at line 239 of file bitstream.cc.
References Assert, and decode().
Referenced by check_glass_table(), HoneyValueManager::delete_document(), and HoneyValueManager::get_all_values().
|
inline |
Definition at line 130 of file bitstream.h.
References acc, di_current, di_stack, end, n_bits, p, and Xapian::BitReader::DIState::uninit().
|
private |
Definition at line 203 of file bitstream.cc.
|
private |
Definition at line 73 of file bitstream.h.
Referenced by check_all_gone(), and init().
|
private |
Definition at line 119 of file bitstream.h.
Referenced by init().
|
private |
Definition at line 118 of file bitstream.h.
Referenced by init().
|
private |
Definition at line 69 of file bitstream.h.
Referenced by check_all_gone(), and init().
|
private |
Definition at line 71 of file bitstream.h.
Referenced by check_all_gone(), and init().
|
private |
Definition at line 67 of file bitstream.h.
Referenced by check_all_gone(), and init().