|
xapian-core
2.0.0
|
Class representing a set of documents in a cluster. More...
#include <cluster.h>
Collaboration diagram for Xapian::DocumentSet: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. More... | |
| ~DocumentSet () | |
| Destructor. More... | |
| Xapian::doccount | size () const |
| Return the size of the DocumentSet. More... | |
| const Xapian::Document & | operator[] (Xapian::doccount i) const |
| Return the Document in the DocumentSet at index i. More... | |
| void | add_document (const Document &document) |
| Add a new Document to the DocumentSet. More... | |
Private Attributes | |
| Xapian::Internal::intrusive_ptr_nonnull< Internal > | internal |
| 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. |
| Xapian::DocumentSet::DocumentSet | ( | ) |
Default constructor.
| Xapian::DocumentSet::~DocumentSet | ( | ) |
Destructor.
| 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. |
| const Xapian::Document& Xapian::DocumentSet::operator[] | ( | Xapian::doccount | i | ) | const |
Return the Document in the DocumentSet at index i.
| Xapian::doccount Xapian::DocumentSet::size | ( | ) | const |
Return the size of the DocumentSet.
|
private |