Realm C++ SDK Version v2.2.0
|
#include <bson.hpp>
Classes | |
struct | date |
A type representing a BSON datetime. More... | |
struct | document |
struct | max_key |
MaxKey will always be the greatest value when comparing to other BSON types. More... | |
struct | min_key |
MinKey will always be the smallest value when comparing to other BSON types. More... | |
struct | regular_expression |
struct | timestamp |
A type representing a BSON timestamp. More... | |
Public Types | |
enum class | type { b_null , b_int32 , b_int64 , b_bool , b_double , b_string , b_binary , b_timestamp , b_datetime , b_objectId , b_decimal128 , b_regular_expression , b_max_key , b_min_key , b_document , b_array , b_uuid } |
using | array = std::vector< bsoncxx > |
Public Member Functions | |
bsoncxx (const bsoncxx &) noexcept | |
bsoncxx (bsoncxx &&) noexcept | |
bsoncxx & | operator= (const bsoncxx &) noexcept |
bsoncxx & | operator= (bsoncxx &&) noexcept |
bsoncxx (int32_t) noexcept | |
bsoncxx (int64_t) noexcept | |
bsoncxx (bool) noexcept | |
bsoncxx (double) noexcept | |
bsoncxx (min_key) noexcept | |
bsoncxx (max_key) noexcept | |
bsoncxx (const timestamp &) noexcept | |
bsoncxx (const date &) noexcept | |
bsoncxx (const decimal128 &) noexcept | |
bsoncxx (const object_id &) noexcept | |
bsoncxx (const uuid &) noexcept | |
bsoncxx (const regular_expression &) noexcept | |
bsoncxx (const std::vector< uint8_t > &) noexcept | |
bsoncxx (const std::string &) noexcept | |
bsoncxx (const char *) noexcept | |
bsoncxx (const document &) noexcept | |
bsoncxx (const array &) noexcept | |
type | get_type () const |
operator realm::bson::Bson () const | |
operator std::nullopt_t () const | |
operator int32_t () const | |
operator int64_t () const | |
operator bool () const | |
operator double () const | |
operator min_key () const | |
operator max_key () const | |
operator timestamp () const | |
operator date () const | |
operator decimal128 () const | |
operator object_id () const | |
operator uuid () const | |
operator regular_expression () const | |
operator std::vector< uint8_t > () const | |
operator std::string () const | |
operator document () const | |
operator array () const | |
std::string | to_string () const |
std::string | to_json () const |
bsoncxx (realm::bson::Bson &) noexcept | |
A struct representing a BSON value. BSON is a computer data interchange format. The name "BSON" is based on the term JSON and stands for "Binary JSON".
The following types conform to BSON:
int32_t int64_t bool double bsoncxx::min_key bsoncxx::max_key bsoncxx::timestamp bsoncxx::date decimal128 object_id uuid bsoncxx::regular_expression std::vector<uint8_t> std::string char*; bsoncxx::document; std::vector<bsoncxx>
|
noexcept |
Allowed BSON types.