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