Directory: | ./ |
---|---|
File: | include/coal/serialization/transform.h |
Date: | 2025-04-01 09:23:31 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 4 | 4 | 100.0% |
Branches: | 2 | 4 | 50.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | // | ||
2 | // Copyright (c) 2024 INRIA | ||
3 | // | ||
4 | |||
5 | #ifndef COAL_SERIALIZATION_TRANSFORM_H | ||
6 | #define COAL_SERIALIZATION_TRANSFORM_H | ||
7 | |||
8 | #include "coal/math/transform.h" | ||
9 | #include "coal/serialization/fwd.h" | ||
10 | |||
11 | namespace boost { | ||
12 | namespace serialization { | ||
13 | |||
14 | template <class Archive> | ||
15 | 84 | void serialize(Archive& ar, coal::Transform3s& tf, | |
16 | const unsigned int /*version*/) { | ||
17 |
1/2✓ Branch 3 taken 42 times.
✗ Branch 4 not taken.
|
84 | ar& make_nvp("R", tf.rotation()); |
18 |
1/2✓ Branch 3 taken 42 times.
✗ Branch 4 not taken.
|
84 | ar& make_nvp("T", tf.translation()); |
19 | 84 | } | |
20 | |||
21 | } // namespace serialization | ||
22 | } // namespace boost | ||
23 | |||
24 | #endif // COAL_SERIALIZATION_TRANSFORM_H | ||
25 |