PositionCursor Class Reference

Inheritance diagram for PositionCursor:

Inheritance graph
[legend]
Collaboration diagram for PositionCursor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PositionCursor (Btree *in, Xapian::docid offset_)
bool next ()
 Advance to the next key.

Public Attributes

string key
string tag

Private Attributes

Xapian::docid offset

Detailed Description

Definition at line 157 of file quartzcompact.cc.


Constructor & Destructor Documentation

PositionCursor::PositionCursor ( Btree in,
Xapian::docid  offset_ 
) [inline]

Definition at line 162 of file quartzcompact.cc.

References Bcursor::find_entry(), and next().


Member Function Documentation

bool PositionCursor::next (  )  [inline]

Advance to the next key.

If cursor is unpositioned, the result is simply false.

If cursor is positioned, and points to the very last item in the Btree the cursor is made unpositioned, and the result is false. Otherwise the cursor is moved to the next item in the B-tree, and the result is true.

Effectively, Bcursor::next() loses the position of BC when it drops off the end of the list of items. If this is awkward, one can always arrange for a key to be present which has a rightmost position in a set of keys,

Reimplemented from Bcursor.

Definition at line 169 of file quartzcompact.cc.

References Bcursor::current_key, Bcursor::current_tag, key, Bcursor::next(), offset, pack_uint(), Bcursor::read_tag(), tag, and unpack_uint().

Referenced by PositionCursor().


Member Data Documentation

Xapian::docid PositionCursor::offset [private]

Definition at line 158 of file quartzcompact.cc.

Referenced by next().

string PositionCursor::key

Definition at line 160 of file quartzcompact.cc.

Referenced by next(), and CursorGt::operator()().

string PositionCursor::tag

Definition at line 160 of file quartzcompact.cc.

Referenced by next().


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.