12 #ifndef SST_CORE_SERIALIZATION_SERIALIZE_VECTOR_H 13 #define SST_CORE_SERIALIZATION_SERIALIZE_VECTOR_H 15 #include "sst/core/serialization/serializer.h" 21 namespace Serialization {
26 typedef std::vector<T> Vector;
31 switch ( ser.mode() ) {
32 case serializer::SIZER:
34 size_t size = v.size();
38 case serializer::PACK:
40 size_t size = v.size();
44 case serializer::UNPACK:
53 for (
size_t i = 0; i < v.size(); ++i ) {
62 typedef std::vector<bool> Vector;
67 switch ( ser.mode() ) {
68 case serializer::SIZER:
70 size_t size = v.size();
73 for (
auto it = v.begin(); it != v.end(); it++ ) {
79 case serializer::PACK:
81 size_t size = v.size();
83 for (
auto it = v.begin(); it != v.end(); it++ ) {
89 case serializer::UNPACK:
94 for (
size_t i = 0; i < v.size(); i++ ) {
110 #endif // SST_CORE_SERIALIZATION_SERIALIZE_VECTOR_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35
Serialization "gateway" object.
Definition: serialize.h:110