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

#include <mongocxx/v1/bulk_write.hpp>

Description

A single "Delete Many" write operation.

Supported fields include:

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

Public Member Functions

 delete_many (bsoncxx::v1::document::value filter)
 Initialize with the given "filter".
 delete_many (delete_many &&other) noexcept
 Move constructor.
 delete_many (delete_many const &other)
 Copy construction.
 ~delete_many ()
 Destroy this object.
bsoncxx::v1::stdx::optional< bsoncxx::v1::document::viewcollation () const
 Return the current "collation" field.
delete_manycollation (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_manyhint (v1::hint v)
 Set the "hint" field.
delete_manyoperator= (delete_many &&other) noexcept
 Move assignment.
delete_manyoperator= (delete_many const &other)
 Copy assignment.

Constructor & Destructor Documentation

◆ ~delete_many()

mongocxx::v1::bulk_write::delete_many::~delete_many ( )

Destroy this object.

Warning
Invalidates all associated views.

◆ delete_many() [1/3]

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

Move constructor.

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

◆ delete_many() [2/3]

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

Copy construction.

◆ delete_many() [3/3]

mongocxx::v1::bulk_write::delete_many::delete_many ( 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_many::collation ( ) const

Return the current "collation" field.

◆ collation() [2/2]

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

Set the "collation" field.

◆ filter()

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

Return the current "filter" field.

◆ hint() [1/2]

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

Return the current "hint" field.

◆ hint() [2/2]

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

Set the "hint" field.

◆ operator=() [1/2]

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

Move assignment.

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

◆ operator=() [2/2]

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

Copy assignment.


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