BitWriter Class Reference

List of all members.

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

Detailed Description

Definition at line 69 of file flint_positionlist.cc.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 95 of file flint_positionlist.cc.

References acc, Assert, buf, and n_bits.

Referenced by encode().

string& BitWriter::freeze (  )  [inline]

Definition at line 115 of file flint_positionlist.cc.

References acc, buf, and n_bits.

Referenced by FlintPositionListTable::set_positionlist().


Member Data Documentation

string BitWriter::buf [private]

Definition at line 71 of file flint_positionlist.cc.

Referenced by freeze(), and write_bits().

int BitWriter::n_bits [private]

Definition at line 72 of file flint_positionlist.cc.

Referenced by freeze(), and write_bits().

unsigned int BitWriter::acc [private]

Definition at line 73 of file flint_positionlist.cc.

Referenced by freeze(), and write_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.