Xapian::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 143 of file flint_positionlist.cc.


Constructor & Destructor Documentation

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

Definition at line 150 of file flint_positionlist.cc.


Member Function Documentation

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

Definition at line 151 of file flint_positionlist.cc.

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

Referenced by decode_interpolative(), FlintPositionListTable::positionlist_count(), and FlintPositionList::read_data().

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

Definition at line 167 of file flint_positionlist.cc.

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

Referenced by decode(), FlintPositionListTable::positionlist_count(), and FlintPositionList::read_data().

bool Xapian::BitReader::check_all_gone (  )  const [inline]

Definition at line 193 of file flint_positionlist.cc.

References acc, buf, idx, and n_bits.

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

Definition at line 200 of file flint_positionlist.cc.

References decode().

Referenced by FlintPositionList::read_data().


Member Data Documentation

string Xapian::BitReader::buf [private]

Definition at line 145 of file flint_positionlist.cc.

Referenced by check_all_gone(), and read_bits().

size_t Xapian::BitReader::idx [private]

Definition at line 146 of file flint_positionlist.cc.

Referenced by check_all_gone(), and read_bits().

int Xapian::BitReader::n_bits [private]

Definition at line 147 of file flint_positionlist.cc.

Referenced by check_all_gone(), and read_bits().

unsigned int Xapian::BitReader::acc [private]

Definition at line 148 of file flint_positionlist.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.