rapidyaml  0.16.0
parseandemitYAML,anddoitfast

example user container type with nested user types. More...

Public Member Functions

void check_eq (my_type const &that) const
 

Public Attributes

vec2< int > v2
 
vec3< int > v3
 
vec4< int > v4
 
my_seq_type< int > seq
 
my_map_type< int, int > map
 

Detailed Description

example user container type with nested user types.

notice all the members have user-defined serialization methods.

Definition at line 4210 of file quickstart.cpp.

Member Function Documentation

void my_type::check_eq ( my_type const &  that) const
inline

Definition at line 4219 of file quickstart.cpp.

Referenced by sample_user_container_types().

4220  {
4221  CHECK(v2.x == that.v2.x);
4222  CHECK(v2.y == that.v2.y);
4223  CHECK(v3.x == that.v3.x);
4224  CHECK(v3.y == that.v3.y);
4225  CHECK(v3.z == that.v3.z);
4226  CHECK(v4.x == that.v4.x);
4227  CHECK(v4.y == that.v4.y);
4228  CHECK(v4.z == that.v4.z);
4229  CHECK(v4.w == that.v4.w);
4230  seq.check_eq(that.seq);
4231  map.check_eq(that.map);
4232  }
my_map_type< int, int > map
vec3< int > v3
vec4< int > v4
void check_eq(my_seq_type const &that) const
my_seq_type< int > seq
#define CHECK(predicate)
a testing assertion, used only in this quickstart
Definition: quickstart.cpp:310
vec2< int > v2
void check_eq(my_map_type const &that) const

Member Data Documentation

vec2<int> my_type::v2

Definition at line 4213 of file quickstart.cpp.

Referenced by check_eq(), read(), and write().

vec3<int> my_type::v3

Definition at line 4214 of file quickstart.cpp.

Referenced by check_eq(), read(), and write().

vec4<int> my_type::v4

Definition at line 4215 of file quickstart.cpp.

Referenced by check_eq(), read(), and write().

my_seq_type<int> my_type::seq

Definition at line 4217 of file quickstart.cpp.

Referenced by check_eq(), read(), and write().

my_map_type<int, int> my_type::map

Definition at line 4218 of file quickstart.cpp.

Referenced by check_eq(), read(), and write().


The documentation for this struct was generated from the following file: