21 #ifndef XAPIAN_INCLUDED_DOCUMENTVALUELIST_H
22 #define XAPIAN_INCLUDED_DOCUMENTVALUELIST_H
45 std::map<Xapian::valueno, std::string>::const_iterator
it;
49 :
doc(doc_),
it(
doc->values->end()) { }
Iteration over values in a document.
Xapian::docid get_docid() const
Return the docid at the current position.
std::string get_description() const
Return a string description of this object.
DocumentValueList(const DocumentValueList &)=delete
Don't allow copying.
void operator=(const DocumentValueList &)=delete
Don't allow assignment.
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.
std::map< Xapian::valueno, std::string >::const_iterator it
Iterator over the map inside doc.
DocumentValueList(const Xapian::Document::Internal *doc_)
Xapian::Internal::intrusive_ptr< const Xapian::Document::Internal > doc
Document internals we're iterating over.
Xapian::valueno get_valueno() const
Return the value slot for the current position/this iterator.
Abstract base class for a document.
Abstract base class for value streams.
Abstract base class for a document.
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Abstract base class for value streams.