|
rapidyaml
0.11.1
parse and emit YAML, and do it fast
|
Classes | |
| struct | c4::yml::Key< K > |
| struct | c4::yml::Key< fmt::const_base64_wrapper > |
| struct | c4::yml::Key< fmt::base64_wrapper > |
Functions | |
| template<class K > | |
| Key< K > | c4::yml::key (K &k) |
| Key< fmt::const_base64_wrapper > | c4::yml::key (fmt::const_base64_wrapper w) |
| Key< fmt::base64_wrapper > | c4::yml::key (fmt::base64_wrapper w) |
| template<class T > | |
| void | c4::yml::write (NodeRef *n, T const &v) |
| template<class T > | |
| bool | c4::yml::read (ConstNodeRef const &n, T *v) |
| template<class T > | |
| bool | c4::yml::read (NodeRef const &n, T *v) |
| template<class T > | |
| bool | c4::yml::readkey (ConstNodeRef const &n, T *v) |
| template<class T > | |
| bool | c4::yml::readkey (NodeRef const &n, T *v) |
| template<class T > | |
| auto | c4::yml::read (Tree const *tree, id_type id, T *v) -> typename std::enable_if<!std::is_arithmetic< T >::value, bool >::type |
| convert the val of a scalar node to a particular non-arithmetic non-float type, by forwarding its val to from_chars<T>(). More... | |
| template<class T > | |
| auto | c4::yml::readkey (Tree const *tree, id_type id, T *v) -> typename std::enable_if<!std::is_arithmetic< T >::value, bool >::type |
| convert the key of a node to a particular non-arithmetic non-float type, by forwarding its key to from_chars<T>(). More... | |
| template<class T > | |
| size_t | c4::yml::to_chars_float (substr buf, T val) |
| encode a floating point value to a string. More... | |
| template<class T > | |
| bool | c4::yml::from_chars_float (csubstr buf, T *val) |
| decode a floating point from string. More... | |
| template<class T > | |
| csubstr | c4::yml::serialize_to_arena (Tree *tree, T const &a) |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1626 of file node.hpp.
References c4::yml::NodeRef::set_val_serialized().
|
inline |
|
inline |
Definition at line 1638 of file node.hpp.
References c4::yml::read().
|
inline |
|
inline |
Definition at line 1650 of file node.hpp.
References c4::yml::readkey().
|
inline |
convert the val of a scalar node to a particular non-arithmetic non-float type, by forwarding its val to from_chars<T>().
convert the val of a scalar node to a particular arithmetic integral non-float type, by forwarding its val to from_chars<T>().
The full string is used.
The full string is used.
Definition at line 1331 of file tree.hpp.
References from_chars(), and c4::yml::VALNIL.
|
inline |
convert the key of a node to a particular non-arithmetic non-float type, by forwarding its key to from_chars<T>().
convert the key of a node to a particular arithmetic integral non-float type, by forwarding its val to from_chars<T>().
The full string is used.
The full string is used.
Definition at line 1342 of file tree.hpp.
References from_chars(), and c4::yml::KEYNIL.
| size_t c4::yml::to_chars_float | ( | substr | buf, |
| T | val | ||
| ) |
encode a floating point value to a string.
Definition at line 1406 of file tree.hpp.
References c4::yml::to_chars().
| bool c4::yml::from_chars_float | ( | csubstr | buf, |
| T * | val | ||
| ) |
decode a floating point from string.
Accepts special values: .nan, .inf, -.inf
Definition at line 1424 of file tree.hpp.
References from_chars().
| csubstr c4::yml::serialize_to_arena | ( | Tree * | tree, |
| T const & | a | ||
| ) |
Definition at line 1520 of file tree.hpp.
References c4::yml::NONE, and c4::yml::serialize_scalar().