20 #include <bsoncxx/document/value.hpp>
21 #include <bsoncxx/document/view.hpp>
22 #include <bsoncxx/document/view_or_value.hpp>
23 #include <bsoncxx/stdx/optional.hpp>
24 #include <bsoncxx/string/view_or_value.hpp>
25 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/config/prelude.hpp>
30 MONGOCXX_INLINE_NAMESPACE_BEGIN
52 MONGOCXX_PRIVATE
virtual int type()
const = 0;
75 const stdx::optional<bsoncxx::string::view_or_value>& config_string()
const;
79 MONGOCXX_PRIVATE
int type()
const override;
80 stdx::optional<bsoncxx::string::view_or_value> _config_string;
98 index& background(
bool background);
105 const stdx::optional<bool>& background()
const;
120 index& unique(
bool unique);
127 const stdx::optional<bool>& unique()
const;
142 index& hidden(
bool hidden);
149 const stdx::optional<bool>& hidden()
const;
168 const stdx::optional<bsoncxx::string::view_or_value>& name()
const;
194 const stdx::optional<bsoncxx::document::view>& collation()
const;
209 index& sparse(
bool sparse);
216 const stdx::optional<bool>& sparse()
const;
229 index& storage_options(std::unique_ptr<base_storage_options> storage_options);
238 index& storage_options(std::unique_ptr<wiredtiger_storage_options> storage_options);
253 index& expire_after(std::chrono::seconds seconds);
260 const stdx::optional<std::chrono::seconds>& expire_after()
const;
272 index& version(std::int32_t v);
279 const stdx::optional<std::int32_t>& version()
const;
299 const stdx::optional<bsoncxx::document::view>& weights()
const;
319 const stdx::optional<bsoncxx::string::view_or_value>& default_language()
const;
339 const stdx::optional<bsoncxx::string::view_or_value>& language_override()
const;
358 const stdx::optional<bsoncxx::document::view>& partial_filter_expression()
const;
370 index& twod_sphere_version(std::uint8_t twod_sphere_version);
377 const stdx::optional<std::uint8_t>& twod_sphere_version()
const;
389 index& twod_bits_precision(std::uint8_t twod_bits_precision);
396 const stdx::optional<std::uint8_t>& twod_bits_precision()
const;
408 index& twod_location_min(
double twod_location_min);
415 const stdx::optional<double>& twod_location_min()
const;
427 index& twod_location_max(
double twod_location_max);
434 const stdx::optional<double>& twod_location_max()
const;
453 MONGOCXX_DEPRECATED
index& haystack_bucket_size(
double haystack_bucket_size);
454 index& haystack_bucket_size_deprecated(
double haystack_bucket_size);
464 MONGOCXX_DEPRECATED
const stdx::optional<double>& haystack_bucket_size()
const;
465 const stdx::optional<double>& haystack_bucket_size_deprecated()
const;
479 stdx::optional<bool> _background;
480 stdx::optional<bool> _unique;
481 stdx::optional<bool> _hidden;
482 stdx::optional<bsoncxx::string::view_or_value> _name;
483 stdx::optional<bsoncxx::document::view> _collation;
484 stdx::optional<bool> _sparse;
485 std::unique_ptr<base_storage_options> _storage_options;
486 stdx::optional<std::chrono::seconds> _expire_after;
487 stdx::optional<std::int32_t> _version;
488 stdx::optional<bsoncxx::document::view> _weights;
489 stdx::optional<bsoncxx::string::view_or_value> _default_language;
490 stdx::optional<bsoncxx::string::view_or_value> _language_override;
491 stdx::optional<bsoncxx::document::view> _partial_filter_expression;
492 stdx::optional<std::uint8_t> _twod_sphere_version;
493 stdx::optional<std::uint8_t> _twod_bits_precision;
494 stdx::optional<double> _twod_location_min;
495 stdx::optional<double> _twod_location_max;
496 stdx::optional<double> _haystack_bucket_size;
501 const std::unique_ptr<base_storage_options>& storage_options()
const;
505 MONGOCXX_INLINE_NAMESPACE_END
508 #include <mongocxx/config/postlude.hpp>