Utilities.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 /*
6  * File: Utilities.h
7  * Author: dducks
8  *
9  * Created on April 12, 2014, 2:19 PM
10  */
11 
12 #ifndef SERIALIZATION_UTILITIES_H
13 #define SERIALIZATION_UTILITIES_H
14 
15 #include <MercuryBase.h>
16 
17 template<class Archive>
18 void serialize(Archive& ar, Vec3D& v)
19 {
20  using namespace cereal;
21  ar( make_nvp("x",v.X),
22  make_nvp("y",v.Y),
23  make_nvp("z",v.Z));
24 }
25 
26 
27 #endif /* UTILITIES_H */
28 
Array< int, Dynamic, 1 > v
Definition: Array_initializer_list_vector_cxx11.cpp:1
void serialize(Archive &ar, Vec3D &v)
Definition: Utilities.h:18
Definition: Kernel/Math/Vector.h:30