MongoDB C++ Driver mongocxx-3.11.0
|
#include <bsoncxx/v_noabi/bsoncxx/types/bson_value/view.hpp>
A view-only variant that can contain any BSON type.
Public Member Functions | |
view () 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 & | get_array () const |
Returns the underlying BSON array value. | |
const b_binary & | get_binary () const |
Returns the underlying BSON binary data value. | |
const b_bool & | get_bool () const |
Returns the underlying BSON boolean value. | |
const b_code & | get_code () const |
Returns the underlying BSON JavaScript code value. | |
const b_codewscope & | get_codewscope () const |
Returns the underlying BSON JavaScript code with scope value. | |
const b_date & | get_date () const |
Returns the underlying BSON date value. | |
const b_dbpointer & | get_dbpointer () const |
Returns the underlying BSON DBPointer value. | |
const b_decimal128 & | get_decimal128 () const |
Returns the underlying BSON Decimal128 value. | |
const b_document & | get_document () const |
Returns the underlying BSON document value. | |
const b_double & | get_double () const |
Returns the underlying BSON double value. | |
const b_int32 & | get_int32 () const |
Returns the underlying BSON 32-bit signed integer value. | |
const b_int64 & | get_int64 () const |
Returns the underlying BSON 64-bit signed integer value. | |
const b_maxkey & | get_maxkey () const |
Returns the underlying BSON max-key value. | |
const b_minkey & | get_minkey () const |
Returns the underlying BSON min-key value. | |
const b_null & | get_null () const |
Returns the underlying BSON null value. | |
const b_oid & | get_oid () const |
Returns the underlying BSON ObjectId value. | |
const b_regex & | get_regex () const |
Returns the underlying BSON regex value. | |
const b_string & | get_string () const |
Returns the underlying BSON UTF-8 string value. | |
const b_symbol & | get_symbol () const |
Returns the underlying BSON symbol value. | |
const b_timestamp & | get_timestamp () const |
Returns the underlying BSON replication timestamp value. | |
const b_undefined & | get_undefined () const |
Returns the underlying BSON undefined value. | |
BSONCXX_DEPRECATED const b_string & | get_utf8 () const |
Returns the underlying BSON UTF-8 string value. | |
bsoncxx::v_noabi::type | type () const |
Returns the type of the underlying BSON value stored in this object. | |
view (b_double v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_string v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_document v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_array v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_binary v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_undefined v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_oid v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_bool v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_date v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_null v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_regex v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_dbpointer v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_code v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_symbol v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_codewscope v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_int32 v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_timestamp v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_int64 v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_decimal128 v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_maxkey v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
view (b_minkey v) noexcept | |
Construct a bson_value::view from the provided BSON type. | |
Related Symbols | |
(Note that these are not member symbols.) | |
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. | |
template<typename T > | |
detail::requires_t< bool, is_bson_view_compatible< T > > | operator== (const bson_value::view &lhs, T &&rhs) |
Compares a view with a type representable as a view. | |
template<typename T > | |
detail::requires_t< bool, is_bson_view_compatible< T > > | operator== (T &&lhs, const bson_value::view &rhs) |
Compares a view with a type representable as a view. | |
template<typename T > | |
detail::requires_t< bool, is_bson_view_compatible< T > > | operator!= (const bson_value::view &lhs, T &&rhs) |
Compares a view with a type representable as a view. | |
template<typename T > | |
detail::requires_t< bool, is_bson_view_compatible< T > > | operator!= (T &&lhs, const bson_value::view &rhs) |
Compares a view with a type representable as a view. | |
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided BSON type.
|
explicitnoexcept |
Construct a bson_value::view from the provided 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::v_noabi::types::bson_value::view::get_array | ( | ) | const |
Returns the underlying BSON array value.
const b_binary & bsoncxx::v_noabi::types::bson_value::view::get_binary | ( | ) | const |
Returns the underlying BSON binary data value.
const b_bool & bsoncxx::v_noabi::types::bson_value::view::get_bool | ( | ) | const |
Returns the underlying BSON boolean value.
const b_code & bsoncxx::v_noabi::types::bson_value::view::get_code | ( | ) | const |
Returns the underlying BSON JavaScript code value.
const b_codewscope & bsoncxx::v_noabi::types::bson_value::view::get_codewscope | ( | ) | const |
Returns the underlying BSON JavaScript code with scope value.
const b_date & bsoncxx::v_noabi::types::bson_value::view::get_date | ( | ) | const |
Returns the underlying BSON date value.
const b_dbpointer & bsoncxx::v_noabi::types::bson_value::view::get_dbpointer | ( | ) | const |
Returns the underlying BSON DBPointer value.
const b_decimal128 & bsoncxx::v_noabi::types::bson_value::view::get_decimal128 | ( | ) | const |
Returns the underlying BSON Decimal128 value.
const b_document & bsoncxx::v_noabi::types::bson_value::view::get_document | ( | ) | const |
Returns the underlying BSON document value.
const b_double & bsoncxx::v_noabi::types::bson_value::view::get_double | ( | ) | const |
Returns the underlying BSON double value.
const b_int32 & bsoncxx::v_noabi::types::bson_value::view::get_int32 | ( | ) | const |
Returns the underlying BSON 32-bit signed integer value.
const b_int64 & bsoncxx::v_noabi::types::bson_value::view::get_int64 | ( | ) | const |
Returns the underlying BSON 64-bit signed integer value.
const b_maxkey & bsoncxx::v_noabi::types::bson_value::view::get_maxkey | ( | ) | const |
Returns the underlying BSON max-key value.
const b_minkey & bsoncxx::v_noabi::types::bson_value::view::get_minkey | ( | ) | const |
Returns the underlying BSON min-key value.
const b_null & bsoncxx::v_noabi::types::bson_value::view::get_null | ( | ) | const |
Returns the underlying BSON null value.
const b_oid & bsoncxx::v_noabi::types::bson_value::view::get_oid | ( | ) | const |
Returns the underlying BSON ObjectId value.
const b_regex & bsoncxx::v_noabi::types::bson_value::view::get_regex | ( | ) | const |
Returns the underlying BSON regex value.
const b_string & bsoncxx::v_noabi::types::bson_value::view::get_string | ( | ) | const |
Returns the underlying BSON UTF-8 string value.
const b_symbol & bsoncxx::v_noabi::types::bson_value::view::get_symbol | ( | ) | const |
Returns the underlying BSON symbol value.
const b_timestamp & bsoncxx::v_noabi::types::bson_value::view::get_timestamp | ( | ) | const |
Returns the underlying BSON replication timestamp value.
const b_undefined & bsoncxx::v_noabi::types::bson_value::view::get_undefined | ( | ) | const |
Returns the underlying BSON undefined value.
BSONCXX_DEPRECATED const b_string & bsoncxx::v_noabi::types::bson_value::view::get_utf8 | ( | ) | const |
Returns the underlying BSON UTF-8 string value.
bsoncxx::v_noabi::type bsoncxx::v_noabi::types::bson_value::view::type | ( | ) | const |
Returns the type of the underlying BSON value stored in this object.
|
friend |
Compare two bson_value::views for equality.
|
related |
Compares a view with a type representable as a view.
T
.
|
related |
Compares a view with a type representable as a view.
T
.
|
friend |
Compare two bson_value::views for equality.
|
related |
Compares a view with a type representable as a view.
T
.
|
related |
Compares a view with a type representable as a view.
T
.