19#include <bsoncxx/stdx/optional.hpp>
20#include <mongocxx/write_type.hpp>
21#include <mongocxx/model/insert_one.hpp>
22#include <mongocxx/model/delete_one.hpp>
23#include <mongocxx/model/delete_many.hpp>
24#include <mongocxx/model/update_one.hpp>
25#include <mongocxx/model/update_many.hpp>
26#include <mongocxx/model/replace_one.hpp>
28#include <mongocxx/config/prelude.hpp>
31MONGOCXX_INLINE_NAMESPACE_BEGIN
136 MONGOCXX_PRIVATE
void destroy_member() noexcept;
151MONGOCXX_INLINE_NAMESPACE_END
154#include <mongocxx/config/postlude.hpp>
Class representing a MongoDB delete operation that removes multiple documents.
Definition delete_many.hpp:28
Class representing a MongoDB delete operation that removes a single document.
Definition delete_one.hpp:28
Class representing a MongoDB insert operation that creates a single document.
Definition insert_one.hpp:28
Class representing a MongoDB update operation that replaces a single document.
Definition replace_one.hpp:30
Class representing a MongoDB update operation that modifies multiple documents.
Definition update_many.hpp:30
Class representing a MongoDB update operation that modifies a single document.
Definition update_one.hpp:30
Models a single write operation within a @bulk_write.
Definition write.hpp:37
write_type type() const
Returns the current type of this write.
write(replace_one value)
Constructs a write from a @replace_one.
write(update_one value)
Constructs a write from an @update_one.
write(update_many value)
Constructs a write from an @update_many.
const delete_one & get_delete_one() const
Accesses the write as a @delete_one.
write(delete_many value)
Constructs a write from a @delete_many.
const delete_many & get_delete_many() const
Accesses the write as a @delete_many.
const insert_one & get_insert_one() const
Accesses the write as an @insert_one.
write(insert_one value)
Constructs a write from an @insert_one.
~write()
Destroys a write.
const update_one & get_update_one() const
Accesses the write as an @update_one.
write(write &&rhs) noexcept
Move constructs a write.
write(delete_one value)
Constructs a write from a @delete_one.
write & operator=(write &&rhs) noexcept
Move assigns a write.
const replace_one & get_replace_one() const
Accesses the write as a @replace_one.
const update_many & get_update_many() const
Accesses the write as an @update_many.