#include <bsoncxx/v1/decimal128.hpp>
A BSON Decimal128.
- Attention
- This feature is experimental! It is not ready for use!
|
| | decimal128 ()=default |
| | Zero-initialize the byte representation.
|
| | decimal128 (std::uint64_t high, std::uint64_t low) |
| | Initialize with the given high and low byte representations.
|
| | decimal128 (v1::stdx::string_view str) |
| | Initialize with the given Decimal128 string representation.
|
| std::uint64_t | high () const |
| | Return the high-order bytes.
|
| std::uint64_t | low () const |
| | Return the low-order bytes.
|
| std::string | to_string () const |
| | Return the string representation.
|
◆ errc
Errors codes which may be returned by bsoncxx::v1::decimal128.
- Attention
- This feature is experimental! It is not ready for use!
| Enumerator |
|---|
| zero | Zero.
|
| empty_string | String must not be empty.
|
| invalid_string_length | Length of string is too long (exceeds INT_MAX).
|
| invalid_string_data | String is not a valid Decimal128 representation.
|
◆ decimal128() [1/3]
| bsoncxx::v1::decimal128::decimal128 |
( |
| ) |
|
|
default |
Zero-initialize the byte representation.
- Note
- The result is equivalent to "0E-6176", not "0".
◆ decimal128() [2/3]
| bsoncxx::v1::decimal128::decimal128 |
( |
std::uint64_t | high, |
|
|
std::uint64_t | low ) |
|
inline |
Initialize with the given high and low byte representations.
◆ decimal128() [3/3]
Initialize with the given Decimal128 string representation.
- Exceptions
-
◆ error_category()
| std::error_category const & bsoncxx::v1::decimal128::error_category |
( |
| ) |
|
|
static |
◆ high()
| std::uint64_t bsoncxx::v1::decimal128::high |
( |
| ) |
const |
|
inline |
Return the high-order bytes.
◆ low()
| std::uint64_t bsoncxx::v1::decimal128::low |
( |
| ) |
const |
|
inline |
Return the low-order bytes.
◆ to_string()
| std::string bsoncxx::v1::decimal128::to_string |
( |
| ) |
const |
Return the string representation.
◆ make_error_code
| std::error_code make_error_code |
( |
errc | v | ) |
|
|
friend |
Support implicit conversion to std::error_code.
- Attention
- This feature is experimental! It is not ready for use!
◆ operator!=
Compare equal when the byte representations compare equal.
◆ operator==
Compare equal when the byte representations compare equal.
The documentation for this class was generated from the following file: