57 return it == doc->values.end();
63 if (it == doc->values.end()) {
64 it = doc->values.begin();
73 it = doc->values.lower_bound(slot);
79 string desc =
"DocumentValueList(";
82 desc +=
str(get_valueno());
Xapian::docid get_docid() const
Return the docid at the current position.
std::string get_description() const
Return a string description of this object.
void next()
Advance the current position to the next document in the value stream.
std::string get_value() const
Return the value at the current position.
void skip_to(Xapian::docid slot)
The parameter is actually a Xapian::valueno for this subclass.
bool at_end() const
Return true if the current position is past the last entry in this list.
Xapian::valueno get_valueno() const
Return the value slot for the current position/this iterator.
InvalidOperationError indicates the API was used in an invalid way.
Append a string to an object description, escaping invalid UTF-8.
Iteration over values in a document.
Hierarchy of classes which Xapian can throw as exceptions.
string str(int value)
Convert int to std::string.
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Various assertion macros.
Convert types to std::string.
void description_append(std::string &desc, const std::string &s)