12#ifndef SST_CORE_SERIALIZATION_SERIALIZE_SET_H
13#define SST_CORE_SERIALIZATION_SERIALIZE_SET_H
15#include "sst/core/serialization/serializer.h"
18#include <unordered_set>
22namespace Serialization {
27 typedef std::set<T> Set;
32 typedef typename std::set<T>::iterator iterator;
33 switch ( ser.mode() ) {
34 case serializer::SIZER:
36 size_t size = v.size();
38 iterator it, end = v.end();
39 for ( it = v.begin(); it != end; ++it ) {
40 T& t =
const_cast<T&
>(*it);
45 case serializer::PACK:
47 size_t size = v.size();
49 iterator it, end = v.end();
50 for ( it = v.begin(); it != end; ++it ) {
51 T& t =
const_cast<T&
>(*it);
56 case serializer::UNPACK:
60 for (
size_t i = 0; i < size; ++i ) {
74 typedef std::unordered_set<T> Set;
79 typedef typename std::unordered_set<T>::iterator iterator;
80 switch ( ser.mode() ) {
81 case serializer::SIZER:
83 size_t size = v.size();
85 iterator it, end = v.end();
86 for ( it = v.begin(); it != end; ++it ) {
87 T& t =
const_cast<T&
>(*it);
92 case serializer::PACK:
94 size_t size = v.size();
96 iterator it, end = v.end();
97 for ( it = v.begin(); it != end; ++it ) {
98 T& t =
const_cast<T&
>(*it);
103 case serializer::UNPACK:
107 for (
size_t i = 0; i < size; ++i ) {
Base serialize class.
Definition: serialize.h:32
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35