MongoDB C++ Driver
mongocxx-3.0.3
|
Models a single write operation within a . More...
#include <write.hpp>
Public Member Functions | |
write (insert_one value) | |
Constructs a write from an . | |
write (update_one value) | |
Constructs a write from an . | |
write (update_many value) | |
Constructs a write from an . | |
write (delete_one value) | |
Constructs a write from a . | |
write (delete_many value) | |
Constructs a write from a . | |
write (replace_one value) | |
Constructs a write from a . | |
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. More... | |
const insert_one & | get_insert_one () const |
Accesses the write as an . More... | |
const update_one & | get_update_one () const |
Accesses the write as an . More... | |
const update_many & | get_update_many () const |
Accesses the write as an . More... | |
const delete_one & | get_delete_one () const |
Accesses the write as a . More... | |
const delete_many & | get_delete_many () const |
Accesses the write as a . More... | |
const replace_one & | get_replace_one () const |
Accesses the write as a . More... | |
Models a single write operation within a .
const delete_many& mongocxx::model::write::get_delete_many | ( | ) | const |
Accesses the write as a .
It is illegal to call this method if the return of (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 .
It is illegal to call this method if the return of (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 .
It is illegal to call this method if the return of (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 .
It is illegal to call this method if the return of (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 .
It is illegal to call this method if the return of (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 .
It is illegal to call this method if the return of (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.