xapian-core
1.5.0
|
Class representing a set of documents judged as relevant. More...
Public Member Functions | |
RSet (const RSet &o) | |
Copying is allowed. More... | |
RSet & | operator= (const RSet &o) |
Copying is allowed. More... | |
RSet (RSet &&o) | |
Move constructor. | |
RSet & | operator= (RSet &&o) |
Move assignment operator. | |
RSet () | |
Default constructor. More... | |
~RSet () | |
Destructor. | |
Xapian::doccount | size () const |
Return number of documents in this RSet object. | |
bool | empty () const |
Return true if this RSet object is empty. | |
void | swap (RSet &o) |
Efficiently swap this RSet object with another. | |
void | add_document (Xapian::docid did) |
Mark a document as relevant. More... | |
void | add_document (const Xapian::MSetIterator &it) |
Mark a document as relevant. More... | |
void | remove_document (Xapian::docid did) |
Unmark a document as relevant. More... | |
void | remove_document (const Xapian::MSetIterator &it) |
Unmark a document as relevant. More... | |
bool | contains (Xapian::docid did) const |
Check if a document is marked as relevant. | |
bool | contains (const Xapian::MSetIterator &it) const |
Check if a document is marked as relevant. | |
std::string | get_description () const |
Return a string describing this object. | |
Class representing a set of documents judged as relevant.
Xapian::RSet::RSet | ( | const RSet & | o | ) |
Copying is allowed.
The internals are reference counted, so copying is cheap.
Xapian::RSet::RSet | ( | ) |
Default constructor.
Creates an empty RSet.
|
inline |
Mark a document as relevant.
If did is already marked as relevant, nothing happens.
void Xapian::RSet::add_document | ( | Xapian::docid | did | ) |
Mark a document as relevant.
If did is already marked as relevant, nothing happens.
Copying is allowed.
The internals are reference counted, so assignment is cheap.
|
inline |
Unmark a document as relevant.
If did is not marked as relevant, nothing happens.
void Xapian::RSet::remove_document | ( | Xapian::docid | did | ) |
Unmark a document as relevant.
If did is not marked as relevant, nothing happens.