FlintSynonymTermList Class Reference

#include <flint_synonym.h>

Inheritance diagram for FlintSynonymTermList:

Inheritance graph
[legend]
Collaboration diagram for FlintSynonymTermList:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FlintSynonymTermList (Xapian::Internal::RefCntPtr< const Xapian::Database::Internal > database_, FlintCursor *cursor_, Xapian::termcount size_, const string &prefix_)
 ~FlintSynonymTermList ()
 Destructor.
string get_termname () const
 Returns the current termname.
Xapian::doccount get_termfreq () const
 Return the term frequency for the term at the current position.
Xapian::termcount get_collection_freq () const
 Return the collection frequency for the term at the current position.
TermListnext ()
 Advance to the next term in the list.
TermListskip_to (const string &tname)
 Advance to the first term which is >= tname.
bool at_end () const
 True if we're off the end of the list.

Private Member Functions

 FlintSynonymTermList (const FlintSynonymTermList &)
 Copying is not allowed.
void operator= (const FlintSynonymTermList &)
 Assignment is not allowed.

Private Attributes

Xapian::Internal::RefCntPtr<
const Xapian::Database::Internal
database
 Keep a reference to our database to stop it being deleted.
FlintCursorcursor
 A cursor which runs through the synonym table reading termnames from the keys.
Xapian::termcount size
 The number of terms in this list.
string prefix
 The prefix to restrict the terms to.

Detailed Description

Definition at line 120 of file flint_synonym.h.


Constructor & Destructor Documentation

FlintSynonymTermList::FlintSynonymTermList ( const FlintSynonymTermList  )  [private]

Copying is not allowed.

FlintSynonymTermList::FlintSynonymTermList ( Xapian::Internal::RefCntPtr< const Xapian::Database::Internal database_,
FlintCursor cursor_,
Xapian::termcount  size_,
const string &  prefix_ 
) [inline]

Definition at line 142 of file flint_synonym.h.

References cursor, FlintCursor::find_entry(), FlintCursor::find_entry_lt(), and prefix.

FlintSynonymTermList::~FlintSynonymTermList (  ) 

Destructor.

Definition at line 168 of file flint_synonym.cc.

References cursor, and DEBUGCALL.


Member Function Documentation

void FlintSynonymTermList::operator= ( const FlintSynonymTermList  )  [private]

Assignment is not allowed.

string FlintSynonymTermList::get_termname (  )  const [virtual]

Returns the current termname.

Either next() or skip_to() must have been called before this method can be called.

Implements AllTermsList.

Definition at line 175 of file flint_synonym.cc.

References Assert, at_end(), FlintCursor::current_key, cursor, DEBUGCALL, and RETURN.

Xapian::doccount FlintSynonymTermList::get_termfreq (  )  const [virtual]

Return the term frequency for the term at the current position.

Implements AllTermsList.

Definition at line 185 of file flint_synonym.cc.

Xapian::termcount FlintSynonymTermList::get_collection_freq (  )  const [virtual]

Return the collection frequency for the term at the current position.

Implements AllTermsList.

Definition at line 191 of file flint_synonym.cc.

TermList * FlintSynonymTermList::next (  )  [virtual]

Advance to the next term in the list.

Implements AllTermsList.

Definition at line 197 of file flint_synonym.cc.

References FlintCursor::after_end(), Assert, at_end(), FlintCursor::current_key, cursor, DEBUGCALL, FlintCursor::next(), prefix, RETURN, startswith(), and FlintCursor::to_end().

TermList * FlintSynonymTermList::skip_to ( const string &  tname  ) 

Advance to the first term which is >= tname.

Definition at line 212 of file flint_synonym.cc.

References FlintCursor::after_end(), Assert, at_end(), FlintCursor::current_key, cursor, DEBUGCALL, FlintCursor::find_entry_ge(), prefix, RETURN, startswith(), and FlintCursor::to_end().

bool FlintSynonymTermList::at_end (  )  const [virtual]

True if we're off the end of the list.

Implements AllTermsList.

Definition at line 229 of file flint_synonym.cc.

References FlintCursor::after_end(), cursor, DEBUGCALL, and RETURN.

Referenced by get_termname(), next(), and skip_to().


Member Data Documentation

Xapian::Internal::RefCntPtr<const Xapian::Database::Internal> FlintSynonymTermList::database [private]

Keep a reference to our database to stop it being deleted.

Definition at line 128 of file flint_synonym.h.

FlintCursor* FlintSynonymTermList::cursor [private]

A cursor which runs through the synonym table reading termnames from the keys.

Definition at line 133 of file flint_synonym.h.

Referenced by at_end(), FlintSynonymTermList(), get_termname(), next(), skip_to(), and ~FlintSynonymTermList().

Xapian::termcount FlintSynonymTermList::size [private]

The number of terms in this list.

Definition at line 136 of file flint_synonym.h.

string FlintSynonymTermList::prefix [private]

The prefix to restrict the terms to.

Definition at line 139 of file flint_synonym.h.

Referenced by FlintSynonymTermList(), next(), and skip_to().


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