#include <mongocxx/v1/indexes.hpp>
A description of a MongoDB index.
Supported fields include:
Public Member Functions | |
| model (bsoncxx::v1::document::value keys) | |
| Initialize with the given "keys" document. | |
| model (model &&other) noexcept | |
| Move constructor. | |
| model (model const &other) | |
| Copy constructor. | |
| ~model () | |
| Destroy this object. | |
| bsoncxx::v1::document::view | keys () const |
| Return the current "keys" field. | |
| model & | operator= (model &&other) noexcept |
| Move assignment. | |
| model & | operator= (model const &other) |
| Copy assignment. | |
| bsoncxx::v1::document::view | options () const |
| Return the current "options" field. | |
| model (bsoncxx::v1::document::value keys, options const &opts) | |
| Initialize with the given "keys" and "options". | |
| model (bsoncxx::v1::document::value keys, bsoncxx::v1::document::value options) | |
| Initialize with the given "keys" and "options". | |
| mongocxx::v1::indexes::model::~model | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::indexes::model::model | ( | model const & | other | ) |
Copy constructor.
|
inline |
Initialize with the given "keys" and "options".
| mongocxx::v1::indexes::model::model | ( | bsoncxx::v1::document::value | keys, |
| bsoncxx::v1::document::value | options ) |
Initialize with the given "keys" and "options".
| mongocxx::v1::indexes::model::model | ( | bsoncxx::v1::document::value | keys | ) |
Initialize with the given "keys" document.
| bsoncxx::v1::document::view mongocxx::v1::indexes::model::keys | ( | ) | const |
Return the current "keys" field.
Move assignment.
| bsoncxx::v1::document::view mongocxx::v1::indexes::model::options | ( | ) | const |
Return the current "options" field.