PostlistChunkReader Class Reference

PostlistChunkReader is essentially an iterator wrapper around a postlist chunk. More...

Collaboration diagram for PostlistChunkReader:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PostlistChunkReader (Xapian::docid first_did, const string &data_)
 Initialise the postlist chunk reader.
Xapian::docid get_docid () const
Xapian::termcount get_wdf () const
bool is_at_end () const
void next ()
 Advance to the next entry.

Private Attributes

string data
const char * pos
const char * end
bool at_end
Xapian::docid did
Xapian::termcount wdf


Detailed Description

PostlistChunkReader is essentially an iterator wrapper around a postlist chunk.

It simply iterates through the entries in a postlist.

Definition at line 256 of file chert_postlist.cc.


Constructor & Destructor Documentation

PostlistChunkReader::PostlistChunkReader ( Xapian::docid  first_did,
const string &  data_ 
) [inline]

Initialise the postlist chunk reader.

Parameters:
first_did First document id in this chunk.
data The tag string with the header removed.

Definition at line 273 of file chert_postlist.cc.

References at_end, end, pos, read_wdf(), and wdf.


Member Function Documentation

Xapian::docid PostlistChunkReader::get_docid (  )  const [inline]

Definition at line 279 of file chert_postlist.cc.

References did.

Referenced by ChertPostListTable::merge_changes().

Xapian::termcount PostlistChunkReader::get_wdf (  )  const [inline]

Definition at line 282 of file chert_postlist.cc.

References wdf.

Referenced by ChertPostListTable::merge_changes().

bool PostlistChunkReader::is_at_end (  )  const [inline]

Definition at line 286 of file chert_postlist.cc.

References at_end.

Referenced by ChertPostListTable::merge_changes().

void PostlistChunkReader::next (  ) 

Advance to the next entry.

Set at_end if we run off the end.

Definition at line 296 of file chert_postlist.cc.

References at_end, did, end, pos, read_did_increase(), read_wdf(), and wdf.

Referenced by ChertPostListTable::merge_changes().


Member Data Documentation

Definition at line 262 of file chert_postlist.cc.

Referenced by is_at_end(), next(), and PostlistChunkReader().

string PostlistChunkReader::data [private]

Definition at line 257 of file chert_postlist.cc.

Definition at line 264 of file chert_postlist.cc.

Referenced by get_docid(), and next().

const char* PostlistChunkReader::end [private]

Definition at line 260 of file chert_postlist.cc.

Referenced by next(), and PostlistChunkReader().

const char* PostlistChunkReader::pos [private]

Definition at line 259 of file chert_postlist.cc.

Referenced by next(), and PostlistChunkReader().

Definition at line 265 of file chert_postlist.cc.

Referenced by get_wdf(), next(), and PostlistChunkReader().


The documentation for this class was generated from the following file:

Documentation for Xapian (version 1.2.4).
Generated on 20 Dec 2010 by Doxygen 1.5.9.