Loading...
Searching...
No Matches
text_options.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/v1/text_options-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <cstdint>
namespace mongocxx {
namespace v1 {
class text_options {
private:
class impl;
void* _impl;
public:
class prefix;
class suffix;
class substring;
MONGOCXX_ABI_EXPORT_CDECL() ~text_options();
MONGOCXX_ABI_EXPORT_CDECL() text_options(text_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(text_options&) operator=(text_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() text_options(text_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(text_options&) operator=(text_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() text_options();
MONGOCXX_ABI_EXPORT_CDECL(text_options&) case_sensitive(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) case_sensitive() const;
MONGOCXX_ABI_EXPORT_CDECL(text_options&) diacritic_sensitive(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) diacritic_sensitive() const;
MONGOCXX_ABI_EXPORT_CDECL(text_options&) prefix_opts(prefix v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<prefix>) prefix_opts() const;
MONGOCXX_ABI_EXPORT_CDECL(text_options&) suffix_opts(suffix v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<suffix>) suffix_opts() const;
MONGOCXX_ABI_EXPORT_CDECL(text_options&) substring_opts(substring v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<substring>) substring_opts() const;
class internal;
};
class text_options::prefix {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~prefix();
MONGOCXX_ABI_EXPORT_CDECL() prefix(prefix&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() prefix(prefix const& other);
MONGOCXX_ABI_EXPORT_CDECL(prefix&) operator=(prefix const& other);
MONGOCXX_ABI_EXPORT_CDECL() prefix();
MONGOCXX_ABI_EXPORT_CDECL(prefix&) str_max_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
MONGOCXX_ABI_EXPORT_CDECL(prefix&) str_min_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
};
class text_options::suffix {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~suffix();
MONGOCXX_ABI_EXPORT_CDECL() suffix(suffix&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() suffix(suffix const& other);
MONGOCXX_ABI_EXPORT_CDECL(suffix&) operator=(suffix const& other);
MONGOCXX_ABI_EXPORT_CDECL() suffix();
MONGOCXX_ABI_EXPORT_CDECL(suffix&) str_max_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
MONGOCXX_ABI_EXPORT_CDECL(suffix&) str_min_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
};
class text_options::substring {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~substring();
MONGOCXX_ABI_EXPORT_CDECL() substring(substring&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(substring&) operator=(substring&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() substring(substring const& other);
MONGOCXX_ABI_EXPORT_CDECL(substring&) operator=(substring const& other);
MONGOCXX_ABI_EXPORT_CDECL() substring();
MONGOCXX_ABI_EXPORT_CDECL(substring&) str_max_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_length() const;
MONGOCXX_ABI_EXPORT_CDECL(substring&) str_max_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_max_query_length() const;
MONGOCXX_ABI_EXPORT_CDECL(substring&) str_min_query_length(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>) str_min_query_length() const;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::text_options::prefix
Options related to prefix queries in Queryable Encryption.
Definition text_options.hpp:157
mongocxx::text_options::prefix::prefix
prefix(prefix &&other) noexcept
Move constructor.
mongocxx::text_options::substring
Options related to substring queries in Queryable Encryption.
Definition text_options.hpp:303
mongocxx::text_options::substring::substring
substring(substring &&other) noexcept
Move constructor.
mongocxx::text_options::suffix
Options related to suffix queries in Queryable Encryption.
Definition text_options.hpp:230
mongocxx::text_options::suffix::suffix
suffix(suffix &&other) noexcept
Move constructor.
mongocxx::text_options::text_options
text_options(text_options &&other) noexcept
Move constructor.
mongocxx::v1::text_options::prefix
Options related to prefix queries in Queryable Encryption.
Definition text_options.hpp:157
mongocxx::v1::text_options::prefix::prefix
prefix(prefix &&other) noexcept
Move constructor.
mongocxx::v1::text_options::prefix::str_min_query_length
prefix & str_min_query_length(std::int32_t v)
Set the "strMinQueryLength" field.
mongocxx::v1::text_options::prefix::~prefix
~prefix()
Destroy this object.
mongocxx::v1::text_options::prefix::str_max_query_length
prefix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
mongocxx::v1::text_options::substring
Options related to substring queries in Queryable Encryption.
Definition text_options.hpp:303
mongocxx::v1::text_options::substring::~substring
~substring()
Destroy this object.
mongocxx::v1::text_options::substring::str_max_query_length
substring & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
mongocxx::v1::text_options::substring::str_min_query_length
substring & str_min_query_length(std::int32_t v)
Set the "strminQueryLength" field.
mongocxx::v1::text_options::substring::substring
substring(substring &&other) noexcept
Move constructor.
mongocxx::v1::text_options::substring::str_max_length
substring & str_max_length(std::int32_t v)
Set the "strMaxLength" field.
mongocxx::v1::text_options::suffix
Options related to suffix queries in Queryable Encryption.
Definition text_options.hpp:230
mongocxx::v1::text_options::suffix::str_min_query_length
suffix & str_min_query_length(std::int32_t v)
Set the "strminQueryLength" field.
mongocxx::v1::text_options::suffix::suffix
suffix(suffix &&other) noexcept
Move constructor.
mongocxx::v1::text_options::suffix::~suffix
~suffix()
Destroy this object.
mongocxx::v1::text_options::suffix::str_max_query_length
suffix & str_max_query_length(std::int32_t v)
Set the "strMaxQueryLength" field.
mongocxx::v1::text_options::prefix_opts
text_options & prefix_opts(prefix v)
Set the "prefix" field.
mongocxx::v1::text_options::text_options
text_options(text_options &&other) noexcept
Move constructor.
mongocxx::v1::text_options::substring_opts
text_options & substring_opts(substring v)
Set the "substring" field.
mongocxx::v1::text_options::suffix_opts
text_options & suffix_opts(suffix v)
Set the "suffix" field.
mongocxx::v1::text_options::~text_options
~text_options()
Destroy this object.
mongocxx::v1::text_options::diacritic_sensitive
text_options & diacritic_sensitive(bool v)
Set the "diacriticSensitive" field.
mongocxx::v1::text_options::case_sensitive
text_options & case_sensitive(bool v)
Set the "caseSensitive" field.
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
prelude.hpp
The mongocxx v1 macro guard prelude header.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
text_options-fwd.hpp
Declares mongocxx::v1::text_options.
optional.hpp
Provides std::optional-related polyfills for library API usage.