MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
count_options.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <mongocxx/v1/count_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
27
31
33
35
36#include <chrono>
37#include <cstdint>
38
39namespace mongocxx {
40namespace v1 {
41
59 private:
60 class impl;
61 void* _impl;
62
63 public:
70
78
86
91
96
104
109
113 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
114
119
123 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
124
129
133 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>) comment() const;
134
139
143 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int64_t>) limit() const;
144
148 MONGOCXX_ABI_EXPORT_CDECL(count_options&) max_time(std::chrono::milliseconds v);
149
153 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::chrono::milliseconds>) max_time() const;
154
159
163 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int64_t>) skip() const;
164
169
174
179
184
185 class internal;
186};
187
188} // namespace v1
189} // namespace mongocxx
190
191#include <mongocxx/v1/detail/postlude.hpp>
192
count_options & skip(std::int64_t v)
Set the "skip" field.
count_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
count_options & read_preference(v1::read_preference v)
Set the "readPreference" field.
count_options & limit(std::int64_t v)
Set the "limit" field.
count_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
~count_options()
Destroy this object.
count_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
count_options & max_time(std::chrono::milliseconds v)
Set the "maxTimeMS" field.
count_options(count_options &&other) noexcept
Move constructor.
count_options & hint(v1::hint v)
Set the "hint" field.
Declares mongocxx::v1::count_options.
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
The top-level namespace within which all mongocxx library entities are declared.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::hint.
Declares mongocxx::v1::read_concern.
Declares mongocxx::v1::read_preference.
Provides std::optional-related polyfills for library API usage.
Declares bsoncxx::v1::types::value.
Declares non-owning, read-only entities representing a BSON type value.