21 #ifndef XAPIAN_INCLUDED_VALUESTREAMDOCUMENT_H 22 #define XAPIAN_INCLUDED_VALUESTREAMDOCUMENT_H 40 mutable std::map<Xapian::valueno, ValueList *>
valuelists;
50 :
Internal(db_.internal[0], 0), db(db_), current(0), doc(NULL) { }
58 size_t multiplier = db.
internal.size();
59 did = (did_ - 1) / multiplier + 1;
60 AssertEq(current, (did_ - 1) % multiplier);
78 #endif // XAPIAN_INCLUDED_VALUESTREAMDOCUMENT_H
Xapian::docid did
The document ID of the document in that database.
This class is used to access a database, or a group of databases.
A document which gets its values from a ValueStreamManager.
ValueStreamDocument(const Xapian::Database &db_)
A document in the database, possibly plus modifications.
ValueStreamDocument(const ValueStreamDocument &)
Don't allow copying.
void set_document(Xapian::docid did_)
std::vector< Xapian::Internal::intrusive_ptr< Internal > > internal
std::map< Xapian::valueno, ValueList * > valuelists
Xapian::Document::Internal * doc
API for working with Xapian databases.
std::string do_get_value(Xapian::valueno slot) const
Implementation of virtual methods.
void operator=(const ValueStreamDocument &)
Don't allow assignment.
std::string get_value(Xapian::valueno slot) const
std::string do_get_data() const
Implementation of virtual methods.
unsigned valueno
The number for a value slot in a document.
Abstract base class for value streams.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
void do_get_all_values(std::map< Xapian::valueno, std::string > &values_) const
Implementation of virtual methods.