MongoDB C++ Driver  mongocxx-3.7.0
Public Member Functions | List of all members
mongocxx::index_model Class Reference

Class representing an index on a MongoDB server. More...

#include <index_model.hpp>

Public Member Functions

 index_model (const bsoncxx::document::view_or_value &keys, const bsoncxx::document::view_or_value &options={})
 Initializes a new index_model over a mongocxx::collection.
 
 index_model (index_model &&) noexcept
 Move constructs an index_model.
 
index_modeloperator= (index_model &&) noexcept
 Move assigns an index_model.
 
 index_model (const index_model &)
 Copy constructs an index_model.
 
 ~index_model ()
 Destroys an index_model.
 
bsoncxx::document::view keys () const
 Retrieves keys of an index_model.
 
bsoncxx::document::view options () const
 Retrieves options of an index_model.
 

Detailed Description

Class representing an index on a MongoDB server.


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