12 #ifndef SERIALIZE_SET_H
13 #define SERIALIZE_SET_H
16 #include <unordered_set>
17 #include "sst/core/serialization/serializer.h"
21 namespace Serialization {
25 typedef std::set<T> Set;
30 typedef typename std::set<T>::iterator iterator;
32 case serializer::SIZER: {
33 size_t size = v.size();
35 iterator it, end = v.end();
36 for (it=v.begin(); it != end; ++it){
37 T& t =
const_cast<T&
>(*it);
42 case serializer::PACK: {
43 size_t size = v.size();
45 iterator it, end = v.end();
46 for (it=v.begin(); it != end; ++it){
47 T& t =
const_cast<T&
>(*it);
52 case serializer::UNPACK: {
55 for (
size_t i=0; i < size; ++i){
68 typedef std::unordered_set<T> Set;
73 typedef typename std::unordered_set<T>::iterator iterator;
75 case serializer::SIZER: {
76 size_t size = v.size();
78 iterator it, end = v.end();
79 for (it=v.begin(); it != end; ++it){
80 T& t =
const_cast<T&
>(*it);
85 case serializer::PACK: {
86 size_t size = v.size();
88 iterator it, end = v.end();
89 for (it=v.begin(); it != end; ++it){
90 T& t =
const_cast<T&
>(*it);
95 case serializer::UNPACK: {
98 for (
size_t i=0; i < size; ++i){
112 #endif // SERIALIZE_SET_H
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35
Base serialize class.
Definition: serialize.h:33