12 #ifndef SST_CORE_SERIALIZATION_SERIALIZE_LIST_H
13 #define SST_CORE_SERIALIZATION_SERIALIZE_LIST_H
15 #include "sst/core/serialization/serializer.h"
21 namespace Serialization {
26 typedef std::list<T> List;
31 typedef typename List::iterator iterator;
32 switch ( ser.mode() ) {
33 case serializer::SIZER:
35 size_t size = v.size();
37 iterator it, end = v.end();
38 for ( it = v.begin(); it != end; ++it ) {
44 case serializer::PACK:
46 size_t size = v.size();
48 iterator it, end = v.end();
49 for ( it = v.begin(); it != end; ++it ) {
55 case serializer::UNPACK:
59 for (
int i = 0; i < size; ++i ) {
74 #endif // SST_CORE_SERIALIZATION_SERIALIZE_LIST_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