12 #ifndef SERIALIZE_MAP_H
13 #define SERIALIZE_MAP_H
16 #include <unordered_map>
17 #include "sst/core/serialization/serializer.h"
21 namespace Serialization {
23 template <
class Key,
class Value>
25 typedef std::map<Key,Value> Map;
29 typedef typename std::map<Key,Value>::iterator iterator;
32 case serializer::SIZER: {
33 size_t size = m.size();
35 iterator it, end = m.end();
36 for (it=m.begin(); it != end; ++it){
43 case serializer::PACK: {
44 size_t size = m.size();
46 iterator it, end = m.end();
47 for (it=m.begin(); it != end; ++it){
53 case serializer::UNPACK: {
56 for (
size_t i=0; i < size; ++i){
69 template <
class Key,
class Value>
71 typedef std::unordered_map<Key,Value> Map;
75 typedef typename std::unordered_map<Key,Value>::iterator iterator;
78 case serializer::SIZER: {
79 size_t size = m.size();
81 iterator it, end = m.end();
82 for (it=m.begin(); it != end; ++it){
89 case serializer::PACK: {
90 size_t size = m.size();
92 iterator it, end = m.end();
93 for (it=m.begin(); it != end; ++it){
99 case serializer::UNPACK: {
102 for (
size_t i=0; i < size; ++i){
119 #endif // SERIALIZE_MAP_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