21 #include <mongocxx/options/count-fwd.hpp>
23 #include <bsoncxx/document/view_or_value.hpp>
24 #include <bsoncxx/stdx/optional.hpp>
25 #include <bsoncxx/types/bson_value/view_or_value.hpp>
26 #include <mongocxx/hint.hpp>
27 #include <mongocxx/read_preference.hpp>
29 #include <mongocxx/config/prelude.hpp>
62 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
collation()
const;
85 const stdx::optional<mongocxx::v_noabi::hint>&
hint()
const;
108 const stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value>&
comment()
const;
131 const stdx::optional<std::int64_t>&
limit()
const;
154 const stdx::optional<std::chrono::milliseconds>&
max_time()
const;
177 const stdx::optional<std::int64_t>&
skip()
const;
203 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _collation;
204 stdx::optional<mongocxx::v_noabi::hint> _hint;
205 stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> _comment;
206 stdx::optional<std::int64_t> _limit;
207 stdx::optional<std::chrono::milliseconds> _max_time;
208 stdx::optional<std::int64_t> _skip;
209 stdx::optional<mongocxx::v_noabi::read_preference> _read_preference;
216 #include <mongocxx/config/postlude.hpp>
Class representing a hint to be passed to a database operation.
Definition: hint.hpp:34
Class representing the optional arguments to mongocxx::v_noabi::collection::count_documents.
Definition: count.hpp:38
const stdx::optional< mongocxx::v_noabi::read_preference > & read_preference() const
The current read_preference for this operation.
count & limit(std::int64_t limit)
Sets the maximum number of documents to count.
const stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
const stdx::optional< std::int64_t > & skip() const
Gets the current number of documents to skip.
const stdx::optional< std::int64_t > & limit() const
Gets the current limit.
count & collation(bsoncxx::v_noabi::document::view_or_value collation)
Sets the collation for this operation.
count & hint(mongocxx::v_noabi::hint index_hint)
Sets the index to use for this operation.
const stdx::optional< mongocxx::v_noabi::hint > & hint() const
Gets the current hint.
count & read_preference(mongocxx::v_noabi::read_preference rp)
Sets the read_preference for this operation.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & collation() const
Retrieves the current collation for this operation.
count & skip(std::int64_t skip)
Sets the number of documents to skip before counting documents.
count & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
count & comment(bsoncxx::v_noabi::types::bson_value::view_or_value comment)
Set the value of the comment option.
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & comment() const
Gets the current value of the comment option.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:63
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19