Specifies the requirements for types that are serialisable via Cereal.
The value_t
type satisfy the cerealisable, if value_t
can be serialised with cereal, i.e. value_t
has a single serialisation function (serialize
) or split load/save pair (load and save) either inside or outside of the class.
- See also
- https://uscilab.github.io/cereal/serialization_functions.html
#include <cereal/types/array.hpp>
Adaptions of concepts from the Cereal library.
Provides seqan3::dna4, container aliases and string literals.
Specifies the requirements for types that are serialisable via Cereal.
Example
#if SEQAN3_WITH_CEREAL
# include <seqan3/test/tmp_directory.hpp>
# include <cereal/archives/binary.hpp>
# include <cereal/types/vector.hpp>
{
cereal::BinaryInputArchive archive(is);
archive(data);
}
{
cereal::BinaryOutputArchive archive(os);
archive(data);
}
int main()
{
seqan3::test::tmp_directory tmp{};
auto tmp_file = tmp.path() / "data.out";
store(vec, tmp_file);
load(vec2, tmp_file);
return 0;
}
#endif
Provides seqan3::debug_stream and related types.
debug_stream_type debug_stream
A global instance of seqan3::debug_stream_type.
Definition debug_stream.hpp:37
- Attention
- The cereal library is an optional dependency of SeqAn, if it is not found no types satisfy this concept.