|
SUNphi
1.0
|
Define a serializable quantity. More...
#include <yaml-cpp/yaml.h>#include <metaprogramming/TypeTraits.hpp>#include <metaprogramming/UniversalReferences.hpp>#include <serialize/Base.hpp>#include <serialize/Binarize.hpp>#include <serialize/Default.hpp>#include <utility/Macros.hpp>Go to the source code of this file.
Classes | |
| class | SUNphi::Serializable< T > |
| Forward definition of serializable. More... | |
Macros | |
| #define | PROVIDE_SIMPLE_FRIEND_BINARY_OPERATOR(OP) |
| Provide a simple friend binary operator. More... | |
| #define | PROVIDE_SIMPLE_BINARY_OPERATOR(OP) |
| Provide a simple binary operator. More... | |
Typedefs | |
| template<typename T , typename Ret = void> | |
| using | SUNphi::EnableIfIsSerializable = EnableIf< isSerializable< T >,Ret > |
Functions | |
| template<typename T > | |
| constexpr bool | SUNphi::_isSerializable (const T *) |
| template<typename... Ts> | |
| constexpr bool | SUNphi::_isSerializable (const Serializable< Ts... > *) |
Variables | |
| template<typename T > | |
| constexpr bool | SUNphi::isSerializable = _isSerializable ((RemRef<T>*)nullptr) |
Define a serializable quantity.
Definition in file Serializable.hpp.
| #define PROVIDE_SIMPLE_BINARY_OPERATOR | ( | OP | ) |
Provide a simple binary operator.
Definition at line 144 of file Serializable.hpp.
| #define PROVIDE_SIMPLE_FRIEND_BINARY_OPERATOR | ( | OP | ) |
Provide a simple friend binary operator.
Definition at line 133 of file Serializable.hpp.
| using SUNphi::EnableIfIsSerializable = typedef EnableIf< isSerializable <T> ,Ret> |
Provides the class itself if T is of the given type
Provides the class itself if T satisfies the condition
Definition at line 195 of file Serializable.hpp.
| constexpr bool SUNphi::_isSerializable | ( | const T * | ) |
| constexpr bool SUNphi::_isSerializable | ( | const Serializable< Ts... > * | ) |
| constexpr bool SUNphi::isSerializable = _isSerializable ((RemRef<T>*)nullptr) |
Check if the class is a Serializable
Calls the internal implementation
Definition at line 195 of file Serializable.hpp.