#include <mongocxx/v1/estimated_document_count_options.hpp>
Options for an "estimatedDocumentCount" operation.
Supported fields include:
Public Member Functions | |
| estimated_document_count_options () | |
| Default initialization. | |
| estimated_document_count_options (estimated_document_count_options &&other) noexcept | |
| Move constructor. | |
| estimated_document_count_options (estimated_document_count_options const &other) | |
| Copy construction. | |
| ~estimated_document_count_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > | comment () const |
| Return the current "comment" field. | |
| estimated_document_count_options & | comment (bsoncxx::v1::types::value comment) |
| Set the "comment" field. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_time () const |
| Return the current "maxTimeMS" field. | |
| estimated_document_count_options & | max_time (std::chrono::milliseconds max_time) |
| Set the "maxTimeMS" field. | |
| estimated_document_count_options & | operator= (estimated_document_count_options &&other) noexcept |
| Move assignment. | |
| estimated_document_count_options & | operator= (estimated_document_count_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< v1::read_preference > | read_preference () const |
| Return the current "readPreference" field. | |
| estimated_document_count_options & | read_preference (v1::read_preference rp) |
| Set the "readPreference" field. | |
| mongocxx::v1::estimated_document_count_options::~estimated_document_count_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::estimated_document_count_options::estimated_document_count_options | ( | estimated_document_count_options const & | other | ) |
Copy construction.
| mongocxx::v1::estimated_document_count_options::estimated_document_count_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > mongocxx::v1::estimated_document_count_options::comment | ( | ) | const |
Return the current "comment" field.
| estimated_document_count_options & mongocxx::v1::estimated_document_count_options::comment | ( | bsoncxx::v1::types::value | comment | ) |
Set the "comment" field.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::estimated_document_count_options::max_time | ( | ) | const |
Return the current "maxTimeMS" field.
| estimated_document_count_options & mongocxx::v1::estimated_document_count_options::max_time | ( | std::chrono::milliseconds | max_time | ) |
Set the "maxTimeMS" field.
|
noexcept |
Move assignment.
| estimated_document_count_options & mongocxx::v1::estimated_document_count_options::operator= | ( | estimated_document_count_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::estimated_document_count_options::read_preference | ( | ) | const |
Return the current "readPreference" field.
| estimated_document_count_options & mongocxx::v1::estimated_document_count_options::read_preference | ( | v1::read_preference | rp | ) |
Set the "readPreference" field.