12 #ifndef SST_CORE_SERIALIZATION_SERIALIZE_DEQUE_H
13 #define SST_CORE_SERIALIZATION_SERIALIZE_DEQUE_H
15 #include "sst/core/serialization/serializer.h"
21 namespace Serialization {
26 typedef std::deque<T> Deque;
31 switch ( ser.mode() ) {
32 case serializer::SIZER:
34 size_t size = v.size();
36 for (
auto it = v.begin(); it != v.end(); ++it ) {
37 T& t =
const_cast<T&
>(*it);
42 case serializer::PACK:
44 size_t size = v.size();
46 for (
auto it = v.begin(); it != v.end(); ++it ) {
47 T& t =
const_cast<T&
>(*it);
52 case serializer::UNPACK:
56 for (
int i = 0; i < size; ++i ) {
71 #endif // SST_CORE_SERIALIZATION_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:34
Base serialize class.
Definition: serialize.h:31