Loading...
Searching...
No Matches
replace_one_result.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/replace_one_result-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/types/view-fwd.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <mongocxx/v1/bulk_write.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <cstdint>
namespace mongocxx {
namespace v1 {
class replace_one_result {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~replace_one_result();
MONGOCXX_ABI_EXPORT_CDECL() replace_one_result(replace_one_result&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_result&) operator=(replace_one_result&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() replace_one_result(replace_one_result const& other);
MONGOCXX_ABI_EXPORT_CDECL(replace_one_result&) operator=(replace_one_result const& other);
MONGOCXX_ABI_EXPORT_CDECL(v1::bulk_write::result) result() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) matched_count() const;
MONGOCXX_ABI_EXPORT_CDECL(std::int64_t) modified_count() const;
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view>) upserted_id() const;
friend MONGOCXX_ABI_EXPORT_CDECL(bool) operator==(replace_one_result const& lhs, replace_one_result const& rhs);
friend bool operator!=(replace_one_result const& lhs, replace_one_result const& rhs) {
return !(lhs == rhs);
}
class internal;
private:
/* explicit(false) */ replace_one_result(void* impl);
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::v1::bulk_write
A list of bulk write operations.
Definition bulk_write.hpp:53
mongocxx::v1::replace_one_result::result
v1::bulk_write::result result() const
Return the raw bulk write result.
mongocxx::v1::replace_one_result::modified_count
std::int64_t modified_count() const
Return the number of documents that were modified.
mongocxx::v1::replace_one_result::replace_one_result
replace_one_result(replace_one_result &&other) noexcept
Move constructor.
mongocxx::v1::replace_one_result::~replace_one_result
~replace_one_result()
Destroy this object.
mongocxx::v1::replace_one_result::upserted_id
bsoncxx::v1::stdx::optional< bsoncxx::v1::types::view > upserted_id() const
Return the upserted document ID.
mongocxx::v1::replace_one_result::matched_count
std::int64_t matched_count() const
Return the number of documents that matched the filter.
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
postlude.hpp
The mongocxx v1 macro guard postlude header.
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.
replace_one_result-fwd.hpp
Declares mongocxx::v1::replace_one_result.
bulk_write.hpp
Provides entities related to write operations.
optional.hpp
Provides std::optional-related polyfills for library API usage.
view-fwd.hpp
Declares non-owning, read-only entities representing a BSON type value.