MongoDB C++ Driver 4.1.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mongocxx::v_noabi::model::write Class Reference

#include <mongocxx/v_noabi/mongocxx/model/write.hpp>

Description

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 (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.
 
writeoperator= (write &&rhs) noexcept
 Move assigns a write.
 
write_type type () const
 Returns the current type of this write.
 

Constructor & Destructor Documentation

◆ write() [1/7]

mongocxx::v_noabi::model::write::write ( insert_one value)

Constructs a write from a model::insert_one.

◆ write() [2/7]

mongocxx::v_noabi::model::write::write ( update_one value)

Constructs a write from a model::update_one.

◆ write() [3/7]

mongocxx::v_noabi::model::write::write ( update_many value)

Constructs a write from a model::update_many.

◆ write() [4/7]

mongocxx::v_noabi::model::write::write ( delete_one value)

Constructs a write from a model::delete_one.

◆ write() [5/7]

mongocxx::v_noabi::model::write::write ( delete_many value)

Constructs a write from a model::delete_many.

◆ write() [6/7]

mongocxx::v_noabi::model::write::write ( replace_one value)

Constructs a write from a model::replace_one.

◆ write() [7/7]

mongocxx::v_noabi::model::write::write ( write && rhs)
noexcept

Move constructs a write.

◆ ~write()

mongocxx::v_noabi::model::write::~write ( )

Destroys a write.

Member Function Documentation

◆ get_delete_many()

delete_many const & 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.

◆ get_delete_one()

delete_one const & 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.

◆ get_insert_one()

insert_one const & 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.

◆ get_replace_one()

replace_one const & 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.

◆ get_update_many()

update_many const & 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.

◆ get_update_one()

update_one const & 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.

◆ operator=()

write & mongocxx::v_noabi::model::write::operator= ( write && rhs)
noexcept

Move assigns a write.

◆ type()

write_type mongocxx::v_noabi::model::write::type ( ) const

Returns the current type of this write.


The documentation for this class was generated from the following file: