MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
mongocxx::v1::bulk_write::delete_one Class Reference

#include <mongocxx/v1/bulk_write.hpp>

Description

A single "Delete One" write operation.

Supported fields include:

See also
Attention
This feature is experimental! It is not ready for use!

Public Member Functions

 delete_one (bsoncxx::v1::document::value filter)
 Initialize with the given "filter".
 delete_one (delete_one &&other) noexcept
 Move constructor.
 delete_one (delete_one const &other)
 Copy construction.
 ~delete_one ()
 Destroy this object.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::viewcollation () const
 Return the current "collation" field.
delete_onecollation (bsoncxx::v1::document::value v)
 Set the "collation" field.
bsoncxx::v1::document::view filter () const
 Return the current "filter" field.
bsoncxx::v1::stdx::optional< v1::hinthint () const
 Return the current "hint" field.
delete_onehint (v1::hint v)
 Set the "hint" field.
delete_oneoperator= (delete_one &&other) noexcept
 Move assignment.
delete_oneoperator= (delete_one const &other)
 Copy assignment.

Constructor & Destructor Documentation

◆ ~delete_one()

mongocxx::v1::bulk_write::delete_one::~delete_one ( )

Destroy this object.

Warning
Invalidates all associated views.

◆ delete_one() [1/3]

mongocxx::v1::bulk_write::delete_one::delete_one ( delete_one && other)
noexcept

Move constructor.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ delete_one() [2/3]

mongocxx::v1::bulk_write::delete_one::delete_one ( delete_one const & other)

Copy construction.

◆ delete_one() [3/3]

mongocxx::v1::bulk_write::delete_one::delete_one ( bsoncxx::v1::document::value filter)
explicit

Initialize with the given "filter".

Postconditions:
  • All other supported fields are "unset" or zero-initialized.

Member Function Documentation

◆ collation() [1/2]

bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::bulk_write::delete_one::collation ( ) const

Return the current "collation" field.

◆ collation() [2/2]

delete_one & mongocxx::v1::bulk_write::delete_one::collation ( bsoncxx::v1::document::value v)

Set the "collation" field.

◆ filter()

bsoncxx::v1::document::view mongocxx::v1::bulk_write::delete_one::filter ( ) const

Return the current "filter" field.

◆ hint() [1/2]

bsoncxx::v1::stdx::optional< v1::hint > mongocxx::v1::bulk_write::delete_one::hint ( ) const

Return the current "hint" field.

◆ hint() [2/2]

delete_one & mongocxx::v1::bulk_write::delete_one::hint ( v1::hint v)

Set the "hint" field.

◆ operator=() [1/2]

delete_one & mongocxx::v1::bulk_write::delete_one::operator= ( delete_one && other)
noexcept

Move assignment.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ operator=() [2/2]

delete_one & mongocxx::v1::bulk_write::delete_one::operator= ( delete_one const & other)

Copy assignment.


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