Typed value with Kleene 3-valued NULL semantics (Spec v0.10.0). More...
#include <impulse_cel.h>
Public Types | |
| enum class | Kind : uint8_t { Null = 0 , Bool , Int64 , Uint64 , Double , String } |
Public Member Functions | |
| bool | is_null () const |
| std::string_view | as_string_view () const |
| bool | to_double (double &out) const |
| bool | to_int64 (int64_t &out) const |
| int | to_tribool () const |
Static Public Member Functions | |
| static CelValue | make_null () |
| static CelValue | make_bool (bool b) |
| static CelValue | make_int (int64_t x) |
| static CelValue | make_uint (uint64_t x) |
| static CelValue | make_double (double x) |
| static CelValue | make_string_view (std::string_view sv) |
| static CelValue | make_string (std::string s) |
Public Attributes | |
| Kind | kind = Kind::Null |
| bool | bool_val = false |
| bool | uses_owned_str = false |
| int64_t | int_val = 0 |
| uint64_t | uint_val = 0 |
| double | dbl_val = 0.0 |
| std::string_view | str_view {} |
| std::string | str_owned {} |
Typed value with Kleene 3-valued NULL semantics (Spec v0.10.0).
|
strong |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
| bool impulse::cel::CelValue::bool_val = false |
| double impulse::cel::CelValue::dbl_val = 0.0 |
| int64_t impulse::cel::CelValue::int_val = 0 |
| Kind impulse::cel::CelValue::kind = Kind::Null |
| std::string impulse::cel::CelValue::str_owned {} |
| std::string_view impulse::cel::CelValue::str_view {} |
| uint64_t impulse::cel::CelValue::uint_val = 0 |
| bool impulse::cel::CelValue::uses_owned_str = false |