MongoDB C++ Driver
4.2.0
Loading...
Searching...
No Matches
update_many_result.hpp
Go to the documentation of this file.
1
// Copyright 2009-present MongoDB, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#pragma once
16
17
#include <
mongocxx/v1/update_many_result-fwd.hpp
>
// IWYU pragma: export
18
19
//
20
21
#include <
mongocxx/v1/detail/prelude.hpp
>
22
23
#include <
bsoncxx/v1/types/view-fwd.hpp
>
24
25
#include <
mongocxx/v1/bulk_write.hpp
>
26
#include <
mongocxx/v1/config/export.hpp
>
27
28
#include <cstdint>
29
#include <map>
30
31
namespace
mongocxx
{
32
namespace
v1
{
33
45
class
update_many_result
{
46
private
:
47
class
impl;
48
void
* _impl;
49
50
public
:
56
MONGOCXX_ABI_EXPORT_CDECL
()
~update_many_result
();
57
64
MONGOCXX_ABI_EXPORT_CDECL
()
update_many_result
(
update_many_result
&& other) noexcept;
65
72
MONGOCXX_ABI_EXPORT_CDECL
(
update_many_result
&) operator=(
update_many_result
&& other) noexcept;
73
77
MONGOCXX_ABI_EXPORT_CDECL
()
update_many_result
(
update_many_result
const& other);
78
82
MONGOCXX_ABI_EXPORT_CDECL
(
update_many_result
&) operator=(
update_many_result
const& other);
83
87
MONGOCXX_ABI_EXPORT_CDECL
(
v1
::
bulk_write
::
result
)
result
() const;
88
92
MONGOCXX_ABI_EXPORT_CDECL
(std::int64_t)
matched_count
() const;
93
97
MONGOCXX_ABI_EXPORT_CDECL
(std::int64_t)
modified_count
() const;
98
102
MONGOCXX_ABI_EXPORT_CDECL
(std::int64_t)
upserted_count
() const;
103
105
using
id_map
=
v1
::
bulk_write
::
result
::
id_map
;
106
112
MONGOCXX_ABI_EXPORT_CDECL
(
id_map
)
upserted_ids
() const;
113
118
friend
MONGOCXX_ABI_EXPORT_CDECL
(
bool
) operator==(
update_many_result
const& lhs,
update_many_result
const& rhs);
119
120
friend
bool
operator!=(
update_many_result
const& lhs,
update_many_result
const& rhs) {
121
return
!(lhs == rhs);
122
}
123
125
126
class
internal;
127
128
private
:
129
/* explicit(false) */
update_many_result
(
void
* impl);
130
};
131
132
}
// namespace v1
133
}
// namespace mongocxx
134
135
#include <
mongocxx/v1/detail/postlude.hpp
>
136
mongocxx::v1::bulk_write
A list of bulk write operations.
Definition
bulk_write.hpp:55
mongocxx::v1::update_many_result::update_many_result
update_many_result(update_many_result &&other) noexcept
Move constructor.
mongocxx::v1::update_many_result::upserted_ids
id_map upserted_ids() const
Return a map from the operation index to the upserted document ID.
mongocxx::v1::update_many_result::~update_many_result
~update_many_result()
Destroy this object.
mongocxx::v1::update_many_result::id_map
v1::bulk_write::result::id_map id_map
A map from the operation index to the upserted document ID.
Definition
update_many_result.hpp:105
mongocxx::v1::update_many_result::result
v1::bulk_write::result result() const
Return the raw bulk write result.
mongocxx::v1::update_many_result::matched_count
std::int64_t matched_count() const
Return the number of documents that matched the filter.
mongocxx::v1::update_many_result::modified_count
std::int64_t modified_count() const
Return the number of documents that were modified.
mongocxx::v1::update_many_result::upserted_count
std::int64_t upserted_count() const
Return the number of documents that were upserted.
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.
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.
update_many_result-fwd.hpp
Declares mongocxx::v1::update_many_result.
bulk_write.hpp
Provides entities related to write operations.
view-fwd.hpp
Declares non-owning, read-only entities representing a BSON type value.
mongocxx
v1
update_many_result.hpp
Generated by
1.15.0