MongoDB C++ Driver mongocxx-3.0.2
|
Models a single write operation within a @bulk_write. More...
#include <write.hpp>
Public Member Functions | |
write (insert_one value) | |
Constructs a write from an @insert_one. | |
write (update_one value) | |
Constructs a write from an @update_one. | |
write (update_many value) | |
Constructs a write from an @update_many. | |
write (delete_one value) | |
Constructs a write from a @delete_one. | |
write (delete_many value) | |
Constructs a write from a @delete_many. | |
write (replace_one value) | |
Constructs a write from a @replace_one. | |
write (write &&rhs) noexcept | |
Move constructs a write. | |
write & | operator= (write &&rhs) noexcept |
Move assigns a write. | |
~write () | |
Destroys a write. | |
write_type | type () const |
Returns the current type of this write. | |
const insert_one & | get_insert_one () const |
Accesses the write as an @insert_one. | |
const update_one & | get_update_one () const |
Accesses the write as an @update_one. | |
const update_many & | get_update_many () const |
Accesses the write as an @update_many. | |
const delete_one & | get_delete_one () const |
Accesses the write as a @delete_one. | |
const delete_many & | get_delete_many () const |
Accesses the write as a @delete_many. | |
const replace_one & | get_replace_one () const |
Accesses the write as a @replace_one. | |
Models a single write operation within a @bulk_write.
const delete_many & mongocxx::model::write::get_delete_many | ( | ) | const |
Accesses the write as a @delete_many.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
const delete_one & mongocxx::model::write::get_delete_one | ( | ) | const |
Accesses the write as a @delete_one.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
const insert_one & mongocxx::model::write::get_insert_one | ( | ) | const |
Accesses the write as an @insert_one.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
const replace_one & mongocxx::model::write::get_replace_one | ( | ) | const |
Accesses the write as a @replace_one.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
const update_many & mongocxx::model::write::get_update_many | ( | ) | const |
Accesses the write as an @update_many.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
const update_one & mongocxx::model::write::get_update_one | ( | ) | const |
Accesses the write as an @update_one.
It is illegal to call this method if the return of @type (above) does not indicate that this object currently contains the applicable type.
write_type mongocxx::model::write::type | ( | ) | const |
Returns the current type of this write.
You must call this method before calling any of the get methods below.