19 #include <mongocxx/options/range-fwd.hpp>
21 #include <bsoncxx/types.hpp>
22 #include <bsoncxx/types/bson_value/view_or_value.hpp>
23 #include <mongocxx/stdx.hpp>
25 #include <mongocxx/config/prelude.hpp>
51 const stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value>&
min()
const;
59 const stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value>&
max()
const;
65 const stdx::optional<std::int64_t>&
sparsity()
const;
73 const stdx::optional<std::int32_t>&
precision()
const;
76 stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> _min;
77 stdx::optional<bsoncxx::v_noabi::types::bson_value::view_or_value> _max;
78 stdx::optional<std::int64_t> _sparsity;
79 stdx::optional<std::int32_t> _precision;
87 #if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
88 #include <mongocxx/config/postlude.hpp>
RangeOpts specifies index options for a Queryable Encryption field supporting "rangePreview" queries.
Definition: range.hpp:43
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & max() const
Gets RangeOpts.max.
const stdx::optional< std::int32_t > & precision() const
Gets RangeOpts.precision.
range & max(bsoncxx::v_noabi::types::bson_value::view_or_value value)
Sets RangeOpts.max.
range & min(bsoncxx::v_noabi::types::bson_value::view_or_value value)
Sets RangeOpts.min.
range & sparsity(std::int64_t value)
Sets RangeOpts.sparsity.
const stdx::optional< std::int64_t > & sparsity() const
Gets RangeOpts.sparsity.
const stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > & min() const
Gets RangeOpts.min.
range & precision(std::int32_t value)
Sets RangeOpts.precision.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19