21#include <bsoncxx/document/view_or_value.hpp>
22#include <bsoncxx/stdx/optional.hpp>
23#include <mongocxx/hint.hpp>
24#include <mongocxx/read_preference.hpp>
26#include <mongocxx/config/prelude.hpp>
29MONGOCXX_INLINE_NAMESPACE_BEGIN
58 const stdx::optional<bsoncxx::document::view_or_value>&
collation()
const;
73 const stdx::optional<class hint>&
hint()
const;
88 const stdx::optional<std::int64_t>&
limit()
const;
107 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
126 const stdx::optional<std::int64_t>&
skip()
const;
148 stdx::optional<bsoncxx::document::view_or_value> _collation;
149 stdx::optional<class hint> _hint;
150 stdx::optional<std::int64_t> _limit;
151 stdx::optional<std::chrono::milliseconds> _max_time;
152 stdx::optional<std::int64_t> _skip;
153 stdx::optional<class read_preference> _read_preference;
157MONGOCXX_INLINE_NAMESPACE_END
160#include <mongocxx/config/postlude.hpp>
Class representing a hint to be passed to a database operation.
Definition hint.hpp:35
Class representing the optional arguments to a MongoDB count command.
Definition count.hpp:36
count & collation(bsoncxx::document::view_or_value collation)
Sets the collation for this operation.
count & skip(std::int64_t skip)
Sets the number of documents to skip before counting documents.
const stdx::optional< class hint > & hint() const
Gets the current hint.
const stdx::optional< std::int64_t > & limit() const
Gets the current limit.
count & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
const stdx::optional< bsoncxx::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
count & hint(class hint index_hint)
Sets the index to use for this operation.
const stdx::optional< class read_preference > & read_preference() const
The current read_preference for this operation.
const stdx::optional< std::int64_t > & skip() const
Gets the current number of documents to skip.
count & limit(std::int64_t limit)
Sets the maximum number of documents to count.
count & read_preference(class read_preference rp)
Sets the read_preference for this operation.
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition read_preference.hpp:57