MongoDB C++ Driver 4.4.0
Loading...
Searching...
No Matches
text_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/text_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
24
26
27#include <cstdint>
28
29namespace mongocxx {
30namespace v1 {
31
151
158 private:
159 class impl;
160 void* _impl;
161
162 public:
169
177
184 MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix&& other) noexcept;
185
190
194 MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix const& other);
195
203
208
212 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
213
218
222 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
223};
224
231 private:
232 class impl;
233 void* _impl;
234
235 public:
242
250
257 MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix&& other) noexcept;
258
263
267 MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix const& other);
268
276
281
285 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
286
291
295 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
296};
297
304 private:
305 class impl;
306 void* _impl;
307
308 public:
315
323
330 MONGOCXX_ABI_EXPORT_CDECL(substring&) operator=(substring&& other) noexcept;
331
336
341
349
354
358 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_length() const;
363
367 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
368
373
377 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
378};
379
380} // namespace v1
381} // namespace mongocxx
382
383#include <mongocxx/v1/detail/postlude.hpp>
384
Options related to prefix queries in Queryable Encryption.
Definition text_options.hpp:157
prefix(prefix &&other) noexcept
Move constructor.
Options related to substring queries in Queryable Encryption.
Definition text_options.hpp:303
substring(substring &&other) noexcept
Move constructor.
Options related to suffix queries in Queryable Encryption.
Definition text_options.hpp:230
suffix(suffix &&other) noexcept
Move constructor.
text_options(text_options &&other) noexcept
Move constructor.
Options related to prefix queries in Queryable Encryption.
Definition text_options.hpp:157
prefix(prefix &&other) noexcept
Move constructor.
prefix & str_min_query_length(std::int32_t v)
Set the "strMinQueryLength" field.
~prefix()
Destroy this object.
prefix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
Options related to substring queries in Queryable Encryption.
Definition text_options.hpp:303
substring & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
substring & str_min_query_length(std::int32_t v)
Set the "strminQueryLength" field.
substring(substring &&other) noexcept
Move constructor.
substring & str_max_length(std::int32_t v)
Set the "strMaxLength" field.
Options related to suffix queries in Queryable Encryption.
Definition text_options.hpp:230
suffix & str_min_query_length(std::int32_t v)
Set the "strminQueryLength" field.
suffix(suffix &&other) noexcept
Move constructor.
~suffix()
Destroy this object.
suffix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
text_options & prefix_opts(prefix v)
Set the "prefix" field.
text_options(text_options &&other) noexcept
Move constructor.
text_options & substring_opts(substring v)
Set the "substring" field.
text_options & suffix_opts(suffix v)
Set the "suffix" field.
~text_options()
Destroy this object.
text_options & diacritic_sensitive(bool v)
Set the "diacriticSensitive" field.
text_options & case_sensitive(bool v)
Set the "caseSensitive" field.
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 mongocxx::v1::text_options.
Provides std::optional-related polyfills for library API usage.