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