21 #ifndef XAPIAN_INCLUDED_RSET_H
22 #define XAPIAN_INCLUDED_RSET_H
24 #if !defined XAPIAN_IN_XAPIAN_H && !defined XAPIAN_LIB_BUILD
25 # error Never use <xapian/rset.h> directly; include <xapian.h> instead.
81 bool empty()
const {
return size() == 0; }
111 remove_document(*it);
123 std::string get_description()
const;
Compiler attribute macros.
A smart pointer that uses intrusive reference counting.
Iterator over a Xapian::MSet.
Class representing a set of documents judged as relevant.
void remove_document(const Xapian::MSetIterator &it)
Unmark a document as relevant.
RSet(const RSet &o)
Copying is allowed.
Xapian::Internal::intrusive_ptr< Internal > internal
bool contains(const Xapian::MSetIterator &it) const
Check if a document is marked as relevant.
RSet(RSet &&o)
Move constructor.
void add_document(const Xapian::MSetIterator &it)
Mark a document as relevant.
RSet & operator=(RSet &&o)
Move assignment operator.
RSet & operator=(const RSet &o)
Copying is allowed.
bool empty() const
Return true if this RSet object is empty.
void swap(RSet &o)
Efficiently swap this RSet object with another.
Class representing a list of search results.
The Xapian namespace contains public interfaces for the Xapian library.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
bool contains(std::string_view s, char substring)
Define XAPIAN_VISIBILITY_* macros.
#define XAPIAN_VISIBILITY_DEFAULT
#define XAPIAN_VISIBILITY_INTERNAL