21 #define POTHOS_OBJECT_SERIALIZE(ValueType) \ 22 POTHOS_CLASS_EXPORT_GUID(Pothos::Detail::ObjectContainerT<ValueType>, "Pothos::Object<" #ValueType ">") 30 namespace serialization {
32 template<
class Archive>
33 void serialize(Archive &, Pothos::Detail::ObjectContainer &,
const unsigned int){}
35 template <
class Archive,
typename ValueType>
36 void serialize(Archive &ar, Pothos::Detail::ObjectContainerT<ValueType> &t,
const unsigned int)
41 template<
class Archive>
44 const bool is_null = not t;
46 if (not is_null) ar << t.
_impl;
49 template<
class Archive>
55 if (not is_null) ar >> t._impl;
#define POTHOS_SERIALIZATION_SPLIT_FREE(T)
Definition: Split.hpp:21
Definition: ArchiveEntry.hpp:20
Detail::ObjectContainer * _impl
Private implementation details.
Definition: Object.hpp:293
Definition: Object.hpp:47
void save(Archive &ar, const std::complex< T > &t, const unsigned int)
Definition: Complex.hpp:20
void serialize(Archive &ar, std::complex< T > &t, const unsigned int ver)
Definition: Complex.hpp:37
void load(Archive &ar, std::complex< T > &t, const unsigned int)
Definition: Complex.hpp:27