34 TermIterator::decref()
37 if (--internal->_refs == 0)
50 if (internal->at_end()) {
56 TermIterator::TermIterator(
Internal *internal_) : internal(internal_)
59 if (!
internal)
return;
94 LOGCALL(API,
string,
"TermIterator::operator*", NO_ARGS);
151 #if 0 // FIXME: Add TermIterator::Internal::get_description() method. 152 string desc =
"TermIterator(";
154 desc +=
internal->get_description();
158 return "TermIterator()";
The Xapian namespace contains public interfaces for the Xapian library.
virtual Xapian::termcount get_wdf() const =0
Return the wdf for the term at the current position.
virtual Internal * next()=0
Advance the current position to the next term in the termlist.
virtual Xapian::doccount get_termfreq() const =0
Return the term frequency for the term at the current position.
unsigned _refs
Reference count.
Xapian::doccount get_termfreq() const
Return the term frequency for the term at the current position.
virtual Internal * skip_to(const std::string &term)=0
Skip forward to the specified term.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
void skip_to(const std::string &term)
Advance the iterator to term term.
Abstract base class for termlists.
TermIterator & operator=(const TermIterator &o)
Assignment.
Class for iterating over a list of terms.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
TermIterator & operator++()
Advance the iterator to the next position.
TermIterator()
Default constructor.
virtual Xapian::PositionIterator positionlist_begin() const =0
Return a PositionIterator for the current position.
Class for iterating over term positions.
virtual std::string get_termname() const =0
Return the termname at the current position.
Xapian::termcount get_wdf() const
Return the wdf for the term at the current position.
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
Abstract base class for termlists.
Various assertion macros.
virtual Xapian::termcount positionlist_count() const =0
Return the length of the position list for the current position.
Class for iterating over a list of terms.
std::string operator*() const
Return the term at the current position.
std::string get_description() const
Return a string describing this object.
void post_advance(Internal *res)
PositionIterator positionlist_begin() const
Return a PositionIterator for the current term.
Xapian::termcount positionlist_count() const
Return the length of the position list for the current position.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)