#include <mutils/macro_utils.hpp>
Go to the source code of this file.
Macros | |
#define | DEFAULT_SERIALIZE1(a) |
This is an automatically-generated file that implements default serialization support with a series of macros. More... | |
#define | DEFAULT_SERIALIZE2(a, b) |
#define | DEFAULT_SERIALIZE3(a, b, c) |
#define | DEFAULT_SERIALIZE4(a, b, c, d) |
#define | DEFAULT_SERIALIZE5(a, b, c, d, e) |
#define | DEFAULT_SERIALIZE6(a, b, c, d, e, f) |
#define | DEFAULT_SERIALIZE7(a, b, c, d, e, f, g) |
#define | DEFAULT_SERIALIZE8(a, b, c, d, e, f, g, h) |
#define | DEFAULT_SERIALIZE9(a, b, c, d, e, f, g, h, i) |
#define | DEFAULT_SERIALIZE10(a, b, c, d, e, f, g, h, i, j) |
#define | DEFAULT_SERIALIZE11(a, b, c, d, e, f, g, h, i, j, k) |
#define | DEFAULT_SERIALIZE12(a, b, c, d, e, f, g, h, i, j, k, l) |
#define | DEFAULT_SERIALIZE13(a, b, c, d, e, f, g, h, i, j, k, l, m) |
#define | DEFAULT_SERIALIZE14(a, b, c, d, e, f, g, h, i, j, k, l, m, n) |
#define | DEFAULT_DESERIALIZE2(Name, a) |
#define | DEFAULT_DESERIALIZE3(Name, a, b) |
#define | DEFAULT_DESERIALIZE4(Name, a, b, c) |
#define | DEFAULT_DESERIALIZE5(Name, a, b, c, d) |
#define | DEFAULT_DESERIALIZE6(Name, a, b, c, d, e) |
#define | DEFAULT_DESERIALIZE7(Name, a, b, c, d, e, f) |
#define | DEFAULT_DESERIALIZE8(Name, a, b, c, d, e, f, g) |
#define | DEFAULT_DESERIALIZE9(Name, a, b, c, d, e, f, g, h) |
#define | DEFAULT_DESERIALIZE10(Name, a, b, c, d, e, f, g, h, i) |
#define | DEFAULT_DESERIALIZE11(Name, a, b, c, d, e, f, g, h, i, j) |
#define | DEFAULT_DESERIALIZE12(Name, a, b, c, d, e, f, g, h, i, j, k) |
#define | DEFAULT_DESERIALIZE13(Name, a, b, c, d, e, f, g, h, i, j, k, l) |
#define | DEFAULT_DESERIALIZE14(Name, a, b, c, d, e, f, g, h, i, j, k, l, m) |
#define | DEFAULT_DESERIALIZE15(Name, a, b, c, d, e, f, g, h, i, j, k, l, m, n) |
#define | DEFAULT_SERIALIZE_IMPL2(count, ...) DEFAULT_SERIALIZE ## count (__VA_ARGS__) |
#define | DEFAULT_SERIALIZE_IMPL(count, ...) DEFAULT_SERIALIZE_IMPL2(count, __VA_ARGS__) |
#define | DEFAULT_SERIALIZE(...) DEFAULT_SERIALIZE_IMPL(VA_NARGS(__VA_ARGS__), __VA_ARGS__) |
#define | DEFAULT_DESERIALIZE_IMPL2(count, ...) DEFAULT_DESERIALIZE ## count (__VA_ARGS__) |
#define | DEFAULT_DESERIALIZE_IMPL(count, ...) DEFAULT_DESERIALIZE_IMPL2(count, __VA_ARGS__) |
#define | DEFAULT_DESERIALIZE(...) DEFAULT_DESERIALIZE_IMPL(VA_NARGS(__VA_ARGS__), __VA_ARGS__) |
#define | DEFAULT_DESERIALIZE_NOALLOC(Name) |
#define | DEFAULT_SERIALIZATION_SUPPORT(CLASS_NAME, CLASS_MEMBERS...) |
THIS (below) is the only user-facing macro in this file. More... | |
#define DEFAULT_DESERIALIZE | ( | ... | ) | DEFAULT_DESERIALIZE_IMPL(VA_NARGS(__VA_ARGS__), __VA_ARGS__) |
Definition at line 581 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE10 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i | |||
) |
Definition at line 423 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE11 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j | |||
) |
Definition at line 443 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE12 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k | |||
) |
Definition at line 465 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE13 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l | |||
) |
Definition at line 489 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE14 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l, | |||
m | |||
) |
Definition at line 515 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE15 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l, | |||
m, | |||
n | |||
) |
Definition at line 543 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE2 | ( | Name, | |
a | |||
) |
Definition at line 333 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE3 | ( | Name, | |
a, | |||
b | |||
) |
Definition at line 339 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE4 | ( | Name, | |
a, | |||
b, | |||
c | |||
) |
Definition at line 345 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE5 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d | |||
) |
Definition at line 353 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE6 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e | |||
) |
Definition at line 363 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE7 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
Definition at line 375 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE8 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) |
Definition at line 389 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE9 | ( | Name, | |
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h | |||
) |
Definition at line 405 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE_IMPL | ( | count, | |
... | |||
) | DEFAULT_DESERIALIZE_IMPL2(count, __VA_ARGS__) |
Definition at line 580 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE_IMPL2 | ( | count, | |
... | |||
) | DEFAULT_DESERIALIZE ## count (__VA_ARGS__) |
Definition at line 579 of file SerializationMacros.hpp.
#define DEFAULT_DESERIALIZE_NOALLOC | ( | Name | ) |
Definition at line 583 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZATION_SUPPORT | ( | CLASS_NAME, | |
CLASS_MEMBERS... | |||
) |
THIS (below) is the only user-facing macro in this file.
It's for automatically generating basic serialization support. plop this macro inside the body of a class which extends ByteRepresentable, providing the name of the class (that you plopped this into) as the first argument and the name of the class's fields as the remaining arguments. Right now we only support up to seven fields; adding more support is easy, just ask if you need.
MAJOR CAVEAT: This macro assumes that there is a constructor which takes all the class members (in the order listed). it's fine if this is a private constructor, but it needs to exist.
Definition at line 609 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE | ( | ... | ) | DEFAULT_SERIALIZE_IMPL(VA_NARGS(__VA_ARGS__), __VA_ARGS__) |
Definition at line 576 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE1 | ( | a | ) |
This is an automatically-generated file that implements default serialization support with a series of macros.
Do not edit this file by hand; you should generate it with generate_macros.py. The public interface is at the bottom of the file.
Definition at line 11 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE10 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j | |||
) |
Definition at line 173 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE11 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k | |||
) |
Definition at line 201 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE12 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l | |||
) |
Definition at line 231 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE13 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l, | |||
m | |||
) |
Definition at line 263 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE14 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
k, | |||
l, | |||
m, | |||
n | |||
) |
Definition at line 297 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE2 | ( | a, | |
b | |||
) |
Definition at line 21 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE3 | ( | a, | |
b, | |||
c | |||
) |
Definition at line 33 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE4 | ( | a, | |
b, | |||
c, | |||
d | |||
) |
Definition at line 47 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) |
Definition at line 63 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE6 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) |
Definition at line 81 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE7 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) |
Definition at line 101 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE8 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h | |||
) |
Definition at line 123 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE9 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i | |||
) |
Definition at line 147 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE_IMPL | ( | count, | |
... | |||
) | DEFAULT_SERIALIZE_IMPL2(count, __VA_ARGS__) |
Definition at line 575 of file SerializationMacros.hpp.
#define DEFAULT_SERIALIZE_IMPL2 | ( | count, | |
... | |||
) | DEFAULT_SERIALIZE ## count (__VA_ARGS__) |
Definition at line 574 of file SerializationMacros.hpp.