MongoDB C++ Driver
4.2.0
Loading...
Searching...
No Matches
delete_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/delete_many_result-fwd.hpp
>
// IWYU pragma: export
18
19
//
20
21
#include <
mongocxx/v1/detail/prelude.hpp
>
22
23
#include <
mongocxx/v1/bulk_write.hpp
>
24
#include <
mongocxx/v1/config/export.hpp
>
25
26
#include <cstdint>
27
28
namespace
mongocxx
{
29
namespace
v1
{
30
39
class
delete_many_result
{
40
private
:
41
class
impl;
42
void
* _impl;
43
44
public
:
50
MONGOCXX_ABI_EXPORT_CDECL
()
~delete_many_result
();
51
58
MONGOCXX_ABI_EXPORT_CDECL
()
delete_many_result
(
delete_many_result
&& other) noexcept;
59
66
MONGOCXX_ABI_EXPORT_CDECL
(
delete_many_result
&) operator=(
delete_many_result
&& other) noexcept;
67
71
MONGOCXX_ABI_EXPORT_CDECL
()
delete_many_result
(
delete_many_result
const& other);
72
76
MONGOCXX_ABI_EXPORT_CDECL
(
delete_many_result
&) operator=(
delete_many_result
const& other);
77
81
MONGOCXX_ABI_EXPORT_CDECL
(
v1
::
bulk_write
::
result
)
result
() const;
82
86
MONGOCXX_ABI_EXPORT_CDECL
(std::int64_t)
deleted_count
() const;
87
92
friend
MONGOCXX_ABI_EXPORT_CDECL
(
bool
) operator==(
delete_many_result
const& lhs,
delete_many_result
const& rhs);
93
94
friend
bool
operator!=(
delete_many_result
const& lhs,
delete_many_result
const& rhs) {
95
return
!(lhs == rhs);
96
}
97
99
100
class
internal;
101
102
private
:
103
/* explicit(false) */
delete_many_result
(
void
* impl);
104
};
105
106
}
// namespace v1
107
}
// namespace mongocxx
108
109
#include <
mongocxx/v1/detail/postlude.hpp
>
110
mongocxx::v1::bulk_write
A list of bulk write operations.
Definition
bulk_write.hpp:55
mongocxx::v1::delete_many_result::delete_many_result
delete_many_result(delete_many_result &&other) noexcept
Move constructor.
mongocxx::v1::delete_many_result::~delete_many_result
~delete_many_result()
Destroy this object.
mongocxx::v1::delete_many_result::result
v1::bulk_write::result result() const
Return the raw bulk write result.
mongocxx::v1::delete_many_result::deleted_count
std::int64_t deleted_count() const
Return the number of documents that were deleted.
delete_many_result-fwd.hpp
Declares mongocxx::v1::delete_many_result.
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.
bulk_write.hpp
Provides entities related to write operations.
mongocxx
v1
delete_many_result.hpp
Generated by
1.15.0