xapian-core
1.5.0
|
Class representing a set of documents in a cluster. More...
Public Member Functions | |
DocumentSet (const DocumentSet &other) | |
Copying is allowed. More... | |
DocumentSet & | operator= (const DocumentSet &other) |
Assignment is allowed. More... | |
DocumentSet (DocumentSet &&other) | |
Move constructor. More... | |
DocumentSet & | operator= (DocumentSet &&other) |
Move assignment operator. More... | |
DocumentSet () | |
Default constructor. | |
~DocumentSet () | |
Destructor. | |
Xapian::doccount | size () const |
Return the size of the DocumentSet. | |
Xapian::Document & | operator[] (Xapian::doccount i) |
Return the Document in the DocumentSet at index i. | |
const Xapian::Document & | operator[] (Xapian::doccount i) const |
Return the Document in the DocumentSet at index i. | |
void | add_document (const Document &document) |
Add a new Document to the DocumentSet. More... | |
Class representing a set of documents in a cluster.
Xapian::DocumentSet::DocumentSet | ( | const DocumentSet & | other | ) |
Copying is allowed.
The internals are reference counted, so copying is cheap.
other | The object to copy. |
Xapian::DocumentSet::DocumentSet | ( | DocumentSet && | other | ) |
Move constructor.
other | The object to move. |
void Xapian::DocumentSet::add_document | ( | const Document & | document | ) |
Add a new Document to the DocumentSet.
document | Document object that is to be added to the DocumentSet |
DocumentSet& Xapian::DocumentSet::operator= | ( | const DocumentSet & | other | ) |
Assignment is allowed.
The internals are reference counted, so assignment is cheap.
other | The object to copy. |
DocumentSet& Xapian::DocumentSet::operator= | ( | DocumentSet && | other | ) |
Move assignment operator.
other | The object to move. |