30 #ifndef CEREAL_TYPES_COMMON_HPP_
31 #define CEREAL_TYPES_COMMON_HPP_
37 namespace common_detail
41 template <
class Archive,
class T>
inline
44 ar( binary_data( array,
sizeof(array) ) );
49 template <
class Archive,
class T>
inline
52 for(
auto & i : array )
60 template <
class T,
bool IsEnum>
92 template <
class Archive,
class T>
inline
101 template <
class Archive,
class T>
inline
111 template <
class Archive,
class T>
inline
115 "Cereal does not support serializing raw pointers - please use a smart pointer");
119 template <
class Archive,
class T>
inline
Main cereal functionality.
Checks if a type is an enum.
Definition: common.hpp:79
StrippedT type
Definition: common.hpp:86
static const bool value
Definition: common.hpp:85
typename std::decay< T >::type DecayedT
Definition: common.hpp:81
typename ::cereal::traits::strip_minimal< DecayedT >::type StrippedT
Definition: common.hpp:82
typename enum_underlying_type< StrippedT, value >::type base_type
Definition: common.hpp:87
type
The type the bitset is encoded with.
Definition: bitset.hpp:44
void serializeArray(Archive &ar, T &array, std::true_type)
Serialization for arrays if BinaryData is supported and we are arithmetic.
Definition: common.hpp:42
in certain simple scenarios. They should probably not be used if maximizing performance is the main o...
Definition: access.hpp:42
std::enable_if< common_detail::is_enum< T >::value, typename common_detail::is_enum< T >::base_type >::type CEREAL_SAVE_MINIMAL_FUNCTION_NAME(Archive const &, T const &t)
Saving for enum types.
Definition: common.hpp:95
CEREAL_SERIALIZE_FUNCTION_NAME(Archive &ar, NameValuePair< T > &t)
Serializing NVP types to binary.
Definition: binary.hpp:134
std::enable_if< common_detail::is_enum< T >::value, void >::type CEREAL_LOAD_MINIMAL_FUNCTION_NAME(Archive const &, T &&t, typename common_detail::is_enum< T >::base_type const &value)
Loading for enum types.
Definition: common.hpp:103
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1282
A wrapper around data that can be serialized in a binary fashion.
Definition: helpers.hpp:212
typename std::underlying_type< T >::type type
Definition: common.hpp:67
Gets the underlying type of an enum.
Definition: common.hpp:61
Used to delay a static_assert until template instantiation.
Definition: traits.hpp:57
Definition: traits.hpp:1112