MongoDB C++ Driver current
Loading...
Searching...
No Matches
string_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/string_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
24
26
27#include <cstdint>
28
29namespace mongocxx {
30namespace v1 {
31
149
154 private:
155 class impl;
156 void* _impl;
157
158 public:
165
173
180 MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix&& other) noexcept;
181
186
190 MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix const& other);
191
199
204
208 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
209
214
218 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
219};
220
225 private:
226 class impl;
227 void* _impl;
228
229 public:
236
244
251 MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix&& other) noexcept;
252
257
261 MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix const& other);
262
270
275
279 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
280
285
289 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
290};
291
296 private:
297 class impl;
298 void* _impl;
299
300 public:
307
315
322 MONGOCXX_ABI_EXPORT_CDECL(substring&) operator=(substring&& other) noexcept;
323
328
333
341
346
350 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_length() const;
355
359 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
360
365
369 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
370};
371
372} // namespace v1
373} // namespace mongocxx
374
375#include <mongocxx/v1/detail/postlude.hpp>
376
Options related to prefix queries in Queryable Encryption.
Definition string_options.hpp:153
prefix(prefix &&other) noexcept
Move constructor.
Options related to substring queries in Queryable Encryption.
Definition string_options.hpp:295
substring(substring &&other) noexcept
Move constructor.
Options related to suffix queries in Queryable Encryption.
Definition string_options.hpp:224
suffix(suffix &&other) noexcept
Move constructor.
string_options(string_options &&other) noexcept
Move constructor.
Options related to prefix queries in Queryable Encryption.
Definition string_options.hpp:153
prefix & str_min_query_length(std::int32_t v)
Set the "strMinQueryLength" field.
prefix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
prefix(prefix &&other) noexcept
Move constructor.
Options related to substring queries in Queryable Encryption.
Definition string_options.hpp:295
substring & str_max_length(std::int32_t v)
Set the "strMaxLength" field.
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.
Options related to suffix queries in Queryable Encryption.
Definition string_options.hpp:224
suffix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
suffix & str_min_query_length(std::int32_t v)
Set the "strMinQueryLength" field.
suffix(suffix &&other) noexcept
Move constructor.
string_options & prefix_opts(prefix v)
Set the "prefix" field.
~string_options()
Destroy this object.
string_options & diacritic_sensitive(bool v)
Set the "diacriticSensitive" field.
string_options & case_sensitive(bool v)
Set the "caseSensitive" field.
string_options & substring_opts(substring v)
Set the "substring" field.
string_options & suffix_opts(suffix v)
Set the "suffix" field.
string_options(string_options &&other) noexcept
Move constructor.
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.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v1::string_options.