12 #ifndef SST_CORE_SERIALIZATION_IMPL_SERIALIZE_DEQUE_H 13 #define SST_CORE_SERIALIZATION_IMPL_SERIALIZE_DEQUE_H 15 #ifndef SST_INCLUDING_SERIALIZE_H 17 "The header file sst/core/serialization/impl/serialize_deque.h should not be directly included as it is not part of the stable public API. The file is included in sst/core/serialization/serialize.h" 20 #include "sst/core/serialization/serializer.h" 26 namespace Serialization {
31 typedef std::deque<T> Deque;
36 switch ( ser.mode() ) {
37 case serializer::SIZER:
39 size_t size = v.size();
41 for (
auto it = v.begin(); it != v.end(); ++it ) {
42 T& t =
const_cast<T&
>(*it);
47 case serializer::PACK:
49 size_t size = v.size();
51 for (
auto it = v.begin(); it != v.end(); ++it ) {
52 T& t =
const_cast<T&
>(*it);
57 case serializer::UNPACK:
61 for (
size_t i = 0; i < size; ++i ) {
74 void operator()(Deque& UNUSED(v),
serializer& UNUSED(ser),
const char* UNUSED(name))
84 #endif // SST_CORE_SERIALIZATION_IMPL_SERIALIZE_DEQUE_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:43
Base serialize class.
Definition: serialize.h:45