BitReader Class Reference

List of all members.

Public Member Functions

 BitReader (const string &buf_)
Xapian::termpos decode (Xapian::termpos outof)
unsigned int read_bits (int count)
bool check_all_gone () const
void decode_interpolative (vector< Xapian::termpos > &pos, int j, int k)

Private Attributes

string buf
size_t idx
int n_bits
unsigned int acc

Detailed Description

Definition at line 96 of file xapian-check.cc.


Constructor & Destructor Documentation

BitReader::BitReader ( const string &  buf_  )  [inline]

Definition at line 103 of file xapian-check.cc.


Member Function Documentation

Xapian::termpos BitReader::decode ( Xapian::termpos  outof  )  [inline]

Definition at line 104 of file xapian-check.cc.

References Assert, my_fls(), and read_bits().

Referenced by check_table(), and decode_interpolative().

unsigned int BitReader::read_bits ( int  count  )  [inline]

Definition at line 120 of file xapian-check.cc.

References acc, Assert, buf, idx, and n_bits.

Referenced by check_table(), and decode().

bool BitReader::check_all_gone (  )  const [inline]

Definition at line 146 of file xapian-check.cc.

References acc, buf, idx, and n_bits.

void BitReader::decode_interpolative ( vector< Xapian::termpos > &  pos,
int  j,
int  k 
)

Definition at line 153 of file xapian-check.cc.

References decode().

Referenced by check_table().


Member Data Documentation

string BitReader::buf [private]

Definition at line 98 of file xapian-check.cc.

Referenced by check_all_gone(), and read_bits().

size_t BitReader::idx [private]

Definition at line 99 of file xapian-check.cc.

Referenced by check_all_gone(), and read_bits().

int BitReader::n_bits [private]

Definition at line 100 of file xapian-check.cc.

Referenced by check_all_gone(), and read_bits().

unsigned int BitReader::acc [private]

Definition at line 101 of file xapian-check.cc.

Referenced by check_all_gone(), and read_bits().


The documentation for this class was generated from the following file:
Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.