Loading...
Searching...
No Matches
range_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/range_options-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/types/value-fwd.hpp>
#include <bsoncxx/v1/types/view-fwd.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <cstdint>
namespace mongocxx {
namespace v1 {
class range_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~range_options();
MONGOCXX_ABI_EXPORT_CDECL() range_options(range_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(range_options&) operator=(range_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() range_options(range_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(range_options&) operator=(range_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() range_options();
MONGOCXX_ABI_EXPORT_CDECL(range_options&) min(bsoncxx::v1::types::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>)
min() const;
MONGOCXX_ABI_EXPORT_CDECL(range_options&) max(bsoncxx::v1::types::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>)
max() const;
MONGOCXX_ABI_EXPORT_CDECL(range_options&) sparsity(std::int64_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int64_t>)
sparsity() const;
MONGOCXX_ABI_EXPORT_CDECL(range_options&) trim_factor(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>)
trim_factor() const;
MONGOCXX_ABI_EXPORT_CDECL(range_options&) precision(std::int32_t v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<std::int32_t>)
precision() const;
class internal;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::v1::range_options::range_options
range_options(range_options &&other) noexcept
Move constructor.
mongocxx::v1::range_options::trim_factor
range_options & trim_factor(std::int32_t v)
Set the "trimFactor" field.
mongocxx::v1::range_options::precision
range_options & precision(std::int32_t v)
Set the "precision" field.
mongocxx::v1::range_options::min
range_options & min(bsoncxx::v1::types::value v)
Set the "min" field.
mongocxx::v1::range_options::sparsity
range_options & sparsity(std::int64_t v)
Set the "sparsity" field.
mongocxx::v1::range_options::max
range_options & max(bsoncxx::v1::types::value v)
Set the "max" field.
mongocxx::v1::range_options::~range_options
~range_options()
Destroy this object.
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.
range_options-fwd.hpp
Declares mongocxx::v1::range_options.
optional.hpp
Provides std::optional-related polyfills for library API usage.
value-fwd.hpp
Declares bsoncxx::v1::types::value.
view-fwd.hpp
Declares non-owning, read-only entities representing a BSON type value.