A variant that can contain any BSON type.
More...
#include <value.hpp>
A variant that can contain any BSON type.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_array& bsoncxx::types::value::get_array |
( |
| ) |
const |
- Returns
- The underlying BSON array value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_binary& bsoncxx::types::value::get_binary |
( |
| ) |
const |
- Returns
- The underlying BSON binary data value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_bool& bsoncxx::types::value::get_bool |
( |
| ) |
const |
- Returns
- The underlying BSON boolean value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_code& bsoncxx::types::value::get_code |
( |
| ) |
const |
- Returns
- The underlying BSON JavaScript code value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_codewscope& bsoncxx::types::value::get_codewscope |
( |
| ) |
const |
- Returns
- The underlying BSON JavaScript code with scope value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_date& bsoncxx::types::value::get_date |
( |
| ) |
const |
- Returns
- The underlying BSON date value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_dbpointer& bsoncxx::types::value::get_dbpointer |
( |
| ) |
const |
- Returns
- The underlying BSON DBPointer value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_decimal128& bsoncxx::types::value::get_decimal128 |
( |
| ) |
const |
- Returns
- The underlying BSON Decimal128 value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_document& bsoncxx::types::value::get_document |
( |
| ) |
const |
- Returns
- The underlying BSON document value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_double& bsoncxx::types::value::get_double |
( |
| ) |
const |
- Returns
- The underlying BSON double value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_int32& bsoncxx::types::value::get_int32 |
( |
| ) |
const |
- Returns
- The underlying BSON 32-bit signed integer value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_int64& bsoncxx::types::value::get_int64 |
( |
| ) |
const |
- Returns
- The underlying BSON 64-bit signed integer value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_maxkey& bsoncxx::types::value::get_maxkey |
( |
| ) |
const |
- Returns
- The underlying BSON max-key value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_minkey& bsoncxx::types::value::get_minkey |
( |
| ) |
const |
- Returns
- The underlying BSON min-key value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_null& bsoncxx::types::value::get_null |
( |
| ) |
const |
- Returns
- The underlying BSON null value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_oid& bsoncxx::types::value::get_oid |
( |
| ) |
const |
- Returns
- The underlying BSON ObjectId value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_regex& bsoncxx::types::value::get_regex |
( |
| ) |
const |
- Returns
- The underlying BSON regex value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_symbol& bsoncxx::types::value::get_symbol |
( |
| ) |
const |
- Returns
- The underlying BSON symbol value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_timestamp& bsoncxx::types::value::get_timestamp |
( |
| ) |
const |
- Returns
- The underlying BSON replication timestamp value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_undefined& bsoncxx::types::value::get_undefined |
( |
| ) |
const |
- Returns
- The underlying BSON undefined value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
const b_utf8& bsoncxx::types::value::get_utf8 |
( |
| ) |
const |
- Returns
- The underlying BSON UTF-8 string value.
- Warning
- It is undefined behavior to call the wrong get_<type> method. Check the underlying type() first.
bsoncxx::type bsoncxx::types::value::type |
( |
| ) |
const |
- Returns
- The type of the underlying BSON value stored in this object.
The documentation for this class was generated from the following file: