rapidyaml  0.16.0
parseandemitYAML,anddoitfast
Serialize/deserialize scalar types

Classes

struct  vec2< T >
 example scalar type, serialized and deserialized More...
 
struct  vec3< T >
 example scalar type, serialized and deserialized More...
 
struct  vec4< T >
 example scalar type, serialized and deserialized More...
 
struct  parse_only_vec2< T >
 example scalar type, deserialized only More...
 
struct  parse_only_vec3< T >
 example scalar type, deserialized only More...
 
struct  parse_only_vec4< T >
 example scalar type, deserialized only More...
 
struct  emit_only_vec2< T >
 example scalar type, serialized only More...
 
struct  emit_only_vec3< T >
 example scalar type, serialized only More...
 
struct  emit_only_vec4< T >
 example scalar type, serialized only More...
 

Functions

template<class T >
size_t to_chars (ryml::substr buf, vec2< T > v)
 
template<class T >
size_t to_chars (ryml::substr buf, vec3< T > v)
 
template<class T >
size_t to_chars (ryml::substr buf, vec4< T > v)
 
template<class T >
size_t to_chars (ryml::substr buf, emit_only_vec2< T > v)
 
template<class T >
size_t to_chars (ryml::substr buf, emit_only_vec3< T > v)
 
template<class T >
size_t to_chars (ryml::substr buf, emit_only_vec4< T > v)
 
template<class T >
bool from_chars (ryml::csubstr buf, vec2< T > *v)
 
template<class T >
bool from_chars (ryml::csubstr buf, vec3< T > *v)
 
template<class T >
bool from_chars (ryml::csubstr buf, vec4< T > *v)
 
template<class T >
bool from_chars (ryml::csubstr buf, parse_only_vec2< T > *v)
 
template<class T >
bool from_chars (ryml::csubstr buf, parse_only_vec3< T > *v)
 
template<class T >
bool from_chars (ryml::csubstr buf, parse_only_vec4< T > *v)
 

Detailed Description

Function Documentation

template<class T >
size_t to_chars ( ryml::substr  buf,
vec2< T >  v 
)

Definition at line 3983 of file quickstart.cpp.

3983 { return ryml::format(buf, "({},{})", v.x, v.y); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
size_t to_chars ( ryml::substr  buf,
vec3< T >  v 
)

Definition at line 3984 of file quickstart.cpp.

3984 { return ryml::format(buf, "({},{},{})", v.x, v.y, v.z); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
size_t to_chars ( ryml::substr  buf,
vec4< T >  v 
)

Definition at line 3985 of file quickstart.cpp.

3985 { return ryml::format(buf, "({},{},{},{})", v.x, v.y, v.z, v.w); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
size_t to_chars ( ryml::substr  buf,
emit_only_vec2< T >  v 
)

Definition at line 3987 of file quickstart.cpp.

3987 { return ryml::format(buf, "({},{})", v.x, v.y); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
size_t to_chars ( ryml::substr  buf,
emit_only_vec3< T >  v 
)

Definition at line 3988 of file quickstart.cpp.

3988 { return ryml::format(buf, "({},{},{})", v.x, v.y, v.z); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
size_t to_chars ( ryml::substr  buf,
emit_only_vec4< T >  v 
)

Definition at line 3989 of file quickstart.cpp.

3989 { return ryml::format(buf, "({},{},{},{})", v.x, v.y, v.z, v.w); }
size_t format(substr buf, csubstr fmt, Arg const &a, Args const &...more)
Using a format string, serialize the arguments into the given fixed-size buffer.
Definition: format.hpp:936
template<class T >
bool from_chars ( ryml::csubstr  buf,
vec2< T > *  v 
)

Definition at line 3994 of file quickstart.cpp.

Referenced by c4::yml::read(), c4::yml::read_key(), and sample_serialize_basic().

3994 { size_t ret = ryml::unformat(buf, "({},{})", v->x, v->y); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138
template<class T >
bool from_chars ( ryml::csubstr  buf,
vec3< T > *  v 
)

Definition at line 3995 of file quickstart.cpp.

3995 { size_t ret = ryml::unformat(buf, "({},{},{})", v->x, v->y, v->z); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138
template<class T >
bool from_chars ( ryml::csubstr  buf,
vec4< T > *  v 
)

Definition at line 3996 of file quickstart.cpp.

3996 { size_t ret = ryml::unformat(buf, "({},{},{},{})", v->x, v->y, v->z, v->w); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138
template<class T >
bool from_chars ( ryml::csubstr  buf,
parse_only_vec2< T > *  v 
)

Definition at line 3998 of file quickstart.cpp.

3998 { size_t ret = ryml::unformat(buf, "({},{})", v->x, v->y); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138
template<class T >
bool from_chars ( ryml::csubstr  buf,
parse_only_vec3< T > *  v 
)

Definition at line 3999 of file quickstart.cpp.

3999 { size_t ret = ryml::unformat(buf, "({},{},{})", v->x, v->y, v->z); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138
template<class T >
bool from_chars ( ryml::csubstr  buf,
parse_only_vec4< T > *  v 
)

Definition at line 4000 of file quickstart.cpp.

4000 { size_t ret = ryml::unformat(buf, "({},{},{},{})", v->x, v->y, v->z, v->w); return ret != ryml::yml::npos; }
size_t unformat(csubstr buf, csubstr fmt, Arg &a, Args &...more)
using a format string, deserialize the arguments from the given buffer.
Definition: format.hpp:987
a null string position
Definition: common.hpp:138