MongoDB C++ Driver mongocxx-3.11.0
Loading...
Searching...
No Matches
search_index_model.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6
11
13
14namespace mongocxx {
15namespace v_noabi {
16
21 public:
26 search_index_model(bsoncxx::v_noabi::document::view_or_value definition);
27
29 search_index_model(bsoncxx::v_noabi::string::view_or_value name,
30 bsoncxx::v_noabi::document::view_or_value definition);
31
32 search_index_model() = delete;
33
38
43
48
53
58
63 bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value>)
64 name() const;
65
69 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v_noabi::document::view) definition() const;
70
75 bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value>)
76 type() const;
77
85 type(bsoncxx::v_noabi::string::view_or_value type);
86
87 private:
88 class impl;
89
90 const impl& _get_impl() const;
91
92 impl& _get_impl();
93
94 private:
95 std::unique_ptr<impl> _impl;
96};
97
98} // namespace v_noabi
99} // namespace mongocxx
100
101#include <mongocxx/config/postlude.hpp>
102
Class representing a search index on a MongoDB server.
Definition search_index_model.hpp:20
bsoncxx::v_noabi::document::view definition() const
Retrieves definition of a search_index_model.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > name() const
Retrieves name of a search_index_model.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > type() const
Retrieves type of a search_index_model.
Provides bsoncxx::v_noabi::document::value.
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition fwd.hpp:222
The mongocxx macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
The top-level namespace within which all mongocxx library entities are declared.
The top-level namespace reserved for the C++ standard library.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::search_index_model.
Provides bsoncxx::v_noabi::string::view_or_value.