#include <mongocxx/v_noabi/mongocxx/hint.hpp>
The index to "hint" or force a MongoDB server to use when performing a query.
Public Member Functions | |
| hint (bsoncxx::v_noabi::document::view_or_value index) | |
| Constructs a new hint. | |
| hint (bsoncxx::v_noabi::string::view_or_value index) | |
| Constructs a new hint. | |
| hint (v1::hint hint) | |
| Construct with the mongocxx::v1 equivalent. | |
| operator bsoncxx::v_noabi::types::view () const | |
| Returns a bsoncxx::v_noabi::types::view representing this hint. | |
| operator v1::hint () const | |
| Convert to the mongocxx::v1 equivalent. | |
| bsoncxx::v_noabi::types::view | to_value () const |
| Returns a bsoncxx::v_noabi::types::view representing this hint. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| bool | operator== (hint const &index_hint, bsoncxx::v_noabi::document::view index) |
| Convenience methods to compare for equality against an index document. | |
| bool | operator== (hint const &index_hint, std::string index) |
| Convenience methods to compare for equality against an index name. | |
| bool | operator== (std::string str, hint const &hint) |
| Convenience methods to compare against an index name. | |
| bool | operator!= (hint const &hint, std::string str) |
| Convenience methods to compare against an index name. | |
| bool | operator!= (std::string str, hint const &hint) |
| Convenience methods to compare against an index name. | |
| bool | operator== (bsoncxx::v_noabi::document::view doc, hint const &hint) |
| Convenience methods to compare for equality against an index document. | |
| bool | operator!= (hint const &hint, bsoncxx::v_noabi::document::view doc) |
| Convenience methods to compare for equality against an index document. | |
| bool | operator!= (bsoncxx::v_noabi::document::view doc, hint const &hint) |
| Convenience methods to compare for equality against an index document. | |
| mongocxx::v_noabi::hint::hint | ( | v1::hint | hint | ) |
Construct with the mongocxx::v1 equivalent.
|
inline |
Constructs a new hint.
Note: this constructor is purposefully not explicit, to allow conversion from either document::view or document::value to view_or_value.
| index | Document view or value representing the index to be used. |
|
inlineexplicit |
Constructs a new hint.
| index | String representing the name of the index to be used. |
|
inline |
Returns a bsoncxx::v_noabi::types::view representing this hint.
|
inlineexplicit |
Convert to the mongocxx::v1 equivalent.
|
inline |
Returns a bsoncxx::v_noabi::types::view representing this hint.
|
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
|
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
|
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
|
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
|
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
|
friend |
Convenience methods to compare for equality against an index document.
Compares equal if the hint contains a matching index document. Otherwise, compares unequal.
|
friend |
Convenience methods to compare for equality against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.
|
Convenience methods to compare against an index name.
Compares equal if the hint contains a matching index name. Otherwise, compares unequal.