12 #ifndef SST_CORE_SERIALIZATION_IMPL_SERIALIZE_LIST_H 13 #define SST_CORE_SERIALIZATION_IMPL_SERIALIZE_LIST_H 15 #ifndef SST_INCLUDING_SERIALIZE_H 17 "The header file sst/core/serialization/impl/serialize_list.h should not be directly included as it is not part of the stable public API. The file is included in sst/core/serialization/serialize.h" 20 #include "sst/core/serialization/serializer.h" 26 namespace Serialization {
31 typedef std::list<T> List;
36 typedef typename List::iterator iterator;
37 switch ( ser.mode() ) {
38 case serializer::SIZER:
40 size_t size = v.size();
42 iterator it, end = v.end();
43 for ( it = v.begin(); it != end; ++it ) {
49 case serializer::PACK:
51 size_t size = v.size();
53 iterator it, end = v.end();
54 for ( it = v.begin(); it != end; ++it ) {
60 case serializer::UNPACK:
64 for (
size_t i = 0; i < size; ++i ) {
77 void operator()(List& UNUSED(v),
serializer& UNUSED(ser),
const char* UNUSED(name))
87 #endif // SST_CORE_SERIALIZATION_IMPL_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:43
Base serialize class.
Definition: serialize.h:45