MongoDB C++ Driver mongocxx-3.7.1
|
A view-only variant that can contain any BSON type. More...
#include <view.hpp>
Public Member Functions | |
view () noexcept | |
Default constructs a bson_value::view. | |
bsoncxx::type | type () const |
const b_double & | get_double () const |
BSONCXX_DEPRECATED const b_string & | get_utf8 () const |
const b_string & | get_string () const |
const b_document & | get_document () const |
const b_array & | get_array () const |
const b_binary & | get_binary () const |
const b_undefined & | get_undefined () const |
const b_oid & | get_oid () const |
const b_bool & | get_bool () const |
const b_date & | get_date () const |
const b_null & | get_null () const |
const b_regex & | get_regex () const |
const b_dbpointer & | get_dbpointer () const |
const b_code & | get_code () const |
const b_symbol & | get_symbol () const |
const b_codewscope & | get_codewscope () const |
const b_int32 & | get_int32 () const |
const b_timestamp & | get_timestamp () const |
const b_int64 & | get_int64 () const |
const b_decimal128 & | get_decimal128 () const |
const b_minkey & | get_minkey () const |
const b_maxkey & | get_maxkey () const |
bool | operator!= (const bson_value::view &, const bson_value::view &) |
Compare two bson_value::views for equality. | |
bool | operator== (const bson_value::view &, const bson_value::view &) |
Compare two bson_value::views for equality. | |
A view-only variant that can contain any BSON type.
|
noexcept |
Default constructs a bson_value::view.
The resulting view will be initialized to point at a bson_value of type k_null.
const b_array & bsoncxx::types::bson_value::view::get_array | ( | ) | const |
const b_binary & bsoncxx::types::bson_value::view::get_binary | ( | ) | const |
const b_bool & bsoncxx::types::bson_value::view::get_bool | ( | ) | const |
const b_code & bsoncxx::types::bson_value::view::get_code | ( | ) | const |
const b_codewscope & bsoncxx::types::bson_value::view::get_codewscope | ( | ) | const |
const b_date & bsoncxx::types::bson_value::view::get_date | ( | ) | const |
const b_dbpointer & bsoncxx::types::bson_value::view::get_dbpointer | ( | ) | const |
const b_decimal128 & bsoncxx::types::bson_value::view::get_decimal128 | ( | ) | const |
const b_document & bsoncxx::types::bson_value::view::get_document | ( | ) | const |
const b_double & bsoncxx::types::bson_value::view::get_double | ( | ) | const |
const b_int32 & bsoncxx::types::bson_value::view::get_int32 | ( | ) | const |
const b_int64 & bsoncxx::types::bson_value::view::get_int64 | ( | ) | const |
const b_maxkey & bsoncxx::types::bson_value::view::get_maxkey | ( | ) | const |
const b_minkey & bsoncxx::types::bson_value::view::get_minkey | ( | ) | const |
const b_null & bsoncxx::types::bson_value::view::get_null | ( | ) | const |
const b_oid & bsoncxx::types::bson_value::view::get_oid | ( | ) | const |
const b_regex & bsoncxx::types::bson_value::view::get_regex | ( | ) | const |
const b_string & bsoncxx::types::bson_value::view::get_string | ( | ) | const |
const b_symbol & bsoncxx::types::bson_value::view::get_symbol | ( | ) | const |
const b_timestamp & bsoncxx::types::bson_value::view::get_timestamp | ( | ) | const |
const b_undefined & bsoncxx::types::bson_value::view::get_undefined | ( | ) | const |
BSONCXX_DEPRECATED const b_string & bsoncxx::types::bson_value::view::get_utf8 | ( | ) | const |
bsoncxx::type bsoncxx::types::bson_value::view::type | ( | ) | const |
|
friend |
Compare two bson_value::views for equality.
|
friend |
Compare two bson_value::views for equality.