|
|
| Value () noexcept=default |
| | Constructs null.
|
| | Value (std::nullptr_t null) noexcept |
| | Constructs null.
|
| | Value (bool flag) noexcept |
| | Constructs a bool.
|
| template<std::signed_integral I> |
| | Value (I number) noexcept |
| | Constructs an int from any signed integer.
|
| | Value (std::string text) noexcept |
| | Constructs a string.
|
| | Value (char const *text) |
| | Constructs a string from a C string, which would otherwise convert to bool.
|
| | Value (Decimal number) noexcept |
| | Constructs a decimal.
|
| | Value (Quantity quantity) noexcept |
| | Constructs a quantity.
|
| | Value (time::DateTime instant) noexcept |
| | Constructs a timestamp.
|
| | Value (ValueList items) |
| | Constructs a list.
|
| | Value (ValueRecord fields) |
| | Constructs a record.
|
| ValueKind | kind () const noexcept |
| | The kind of value held.
|
| bool | isNull () const noexcept |
| | Whether the value is null.
|
| bool const * | asBool () const noexcept |
| | The bool, if held.
|
| std::int64_t const * | asInt () const noexcept |
| | The int, if held.
|
| std::string const * | asString () const noexcept |
| | The string, if held.
|
| Decimal const * | asDecimal () const noexcept |
| | The decimal, if held.
|
| Quantity const * | asQuantity () const noexcept |
| | The quantity, if held.
|
| time::DateTime const * | asTimestamp () const noexcept |
| | The timestamp, if held.
|
| ValueList const * | asList () const noexcept |
| | The list, if held.
|
| ValueRecord const * | asRecord () const noexcept |
| | The record, if held.
|
| Value const * | field (std::string_view name) const |
| | A field of a record.
|
| bool | operator== (Value const &other) const |
| | Deep equality: same kind and equal content; a decimal's places take part.
|
The document's typed value (spec 5 §3): what every expression evaluates to.
A value is immutable once built. Lists and records share their storage between copies, so copying a value — which the reactive core does on every read — costs a reference count, not a deep copy. Equality is deep.
Definition at line 157 of file value.hpp.