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.
◆ get_array()
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.
◆ get_binary()
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.
◆ get_bool()
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.
◆ get_code()
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.
◆ get_codewscope()
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.
◆ get_date()
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.
◆ get_dbpointer()
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.
◆ get_decimal128()
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.
◆ get_document()
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.
◆ get_double()
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.
◆ get_int32()
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.
◆ get_int64()
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.
◆ get_maxkey()
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.
◆ get_minkey()
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.
◆ get_null()
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.
◆ get_oid()
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.
◆ get_regex()
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.
◆ get_symbol()
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.
◆ get_timestamp()
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.
◆ get_undefined()
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.
◆ get_utf8()
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.
◆ type()
- Returns
- The type of the underlying BSON value stored in this object.
The documentation for this class was generated from the following file: