#include <mongocxx/v_noabi/mongocxx/model/write.hpp>
A single write operation for use with 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 (v1::bulk_write::single op) | |
| Construct with the mongocxx::v1 equivalent. | |
| write (write &&rhs) noexcept | |
| Move constructs a write. | |
| ~write () | |
| Destroys a write. | |
| delete_many const & | 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. | |
| delete_one const & | 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. | |
| insert_one const & | 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. | |
| replace_one const & | 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. | |
| update_many const & | 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. | |
| update_one const & | 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. | |
| operator v1::bulk_write::single () && | |
| Convert to the mongocxx::v1 equivalent. | |
| operator v1::bulk_write::single () const & | |
| Convert to the mongocxx::v1 equivalent. | |
| write & | operator= (write &&rhs) noexcept |
| Move assigns a write. | |
| write_type | type () const |
| Returns the current type of this write. | |
Construct with the mongocxx::v1 equivalent.
|
inline |
Constructs a write from a model::insert_one.
|
inline |
Constructs a write from a model::update_one.
|
inline |
Constructs a write from a model::update_many.
|
inline |
Constructs a write from a model::delete_one.
|
inline |
Constructs a write from a model::delete_many.
|
inline |
Constructs a write from a model::replace_one.
|
inlinenoexcept |
Move constructs a write.
|
inline |
Destroys a write.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
inline |
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.
|
explicit |
Convert to the mongocxx::v1 equivalent.
|
explicit |
Convert to the mongocxx::v1 equivalent.
Move assigns a write.
|
inline |
Returns the current type of this write.