34 ValueIterator::decref()
37 if (--internal->_refs == 0)
41 ValueIterator::ValueIterator(
Internal *internal_) : internal(internal_)
83 LOGCALL(API,
string,
"ValueIterator::operator*", NO_ARGS);
120 LOGCALL_VOID(API,
"ValueIterator::skip_to", docid_or_slot);
122 internal->skip_to(docid_or_slot);
133 LOGCALL(API,
bool,
"ValueIterator::check", did);
147 string desc =
"ValueIterator(";
149 desc +=
internal->get_description();
The Xapian namespace contains public interfaces for the Xapian library.
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
unsigned _refs
Reference count.
Class for iterating over document values.
#define LOGCALL_VOID(CATEGORY, FUNC, PARAMS)
std::string operator*() const
Return the value at the current position.
ValueIterator & operator++()
Advance the iterator to the next position.
virtual Xapian::valueno get_valueno() const =0
Return the value slot for the current position/this iterator.
ValueIterator & operator=(const ValueIterator &o)
Assignment.
Class for iterating over document values.
virtual Xapian::docid get_docid() const =0
Return the docid at the current position.
#define LOGCALL_CTOR(CATEGORY, CLASS, PARAMS)
ValueIterator()
Default constructor.
bool check(Xapian::docid docid)
Check if the specified docid occurs.
Abstract base class for value streams.
virtual std::string get_value() const =0
Return the value at the current position.
unsigned valueno
The number for a value slot in a document.
Xapian::docid get_docid() const
Return the docid at the current position.
virtual bool check(Xapian::docid did)
Check if the specified docid occurs in this valuestream.
Abstract base class for value streams.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
std::string get_description() const
Return a string describing this object.
#define LOGCALL(CATEGORY, TYPE, FUNC, PARAMS)
Xapian::valueno get_valueno() const
Return the value slot number for the current position.
void skip_to(Xapian::docid docid_or_slot)
Advance the iterator to document id or value slot docid_or_slot.