SUNphi  1.0
Scalar.hpp
Go to the documentation of this file.
1 #ifndef _SERIALIZE_SCALAR_HPP
2 #define _SERIALIZE_SCALAR_HPP
3 
4 /// \file serialize/Scalar.hpp
5 ///
6 /// \brief Define a serializable scalar
7 
8 #ifdef HAVE_CONFIG_H
9  #include <config.hpp>
10 #endif
11 
12 namespace SUNphi
13 {
14  /// Defines a serializable scalar with an explicit tag
15 #define SERIALIZABLE_SCALAR_WITH_TAG(TYPE,NAME,TAG,...)
16  Serializable<TYPE> NAME{TAG,__VA_ARGS__}
17 
18  /// Defines a serializable scalar with the same tag of the variable name
19 #define SERIALIZABLE_SCALAR(TYPE,NAME,...)
20  SERIALIZABLE_SCALAR_WITH_TAG(TYPE,NAME,#NAME,__VA_ARGS__)
21 }
22 
23 #endif
#define SERIALIZABLE_SCALAR_WITH_TAG(TYPE, NAME, TAG,...)
Defines a serializable scalar with an explicit tag.
Definition: Scalar.hpp:15
decltype(auto) operator+(T1 &&smet1, T2 &&smet2)
Implement smet1+smet2.
Definition: Add.hpp:87