31 map<Xapian::valueno, ValueList *>::const_iterator i;
32 for (i = valuelists.begin(); i != valuelists.end(); ++i) {
48 AssertRel(
size_t(n),<,db.internal.size());
49 current = unsigned(n);
50 database = db.internal[n];
57 #ifdef XAPIAN_ASSERTIONS_PARANOID 59 doc = database->open_document(did,
true);
63 pair<map<Xapian::valueno, ValueList *>::iterator,
bool> ret;
64 ret = valuelists.insert(make_pair(slot, static_cast<ValueList*>(NULL)));
68 vl = database->open_value_list(slot);
69 ret.first->second = vl;
71 vl = ret.first->second;
81 ret.first->second = NULL;
97 doc = database->open_document(did,
true);
99 doc->do_get_all_values(v);
106 doc = database->open_document(did,
true);
108 return doc->do_get_data();
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
#define AssertRel(A, REL, B)
static void clear_valuelists(map< Xapian::valueno, ValueList *> &valuelists)
std::string do_get_value(Xapian::valueno slot) const
Implementation of virtual methods.
virtual Xapian::docid get_docid() const =0
Return the docid at the current position.
A document which gets its values from a ValueStreamManager.
Abstract base class for value streams.
#define AssertEqParanoid(A, B)
std::string do_get_data() const
Implementation of virtual methods.
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.
virtual bool check(Xapian::docid did)
Check if the specified docid occurs in this valuestream.
Various assertion macros.
void do_get_all_values(std::map< Xapian::valueno, std::string > &values_) const
Implementation of virtual methods.