12#ifndef SST_CORE_SERIALIZATION_IMPL_SERIALIZE_BITSET_H
13#define SST_CORE_SERIALIZATION_IMPL_SERIALIZE_BITSET_H
15#ifndef SST_INCLUDING_SERIALIZE_H
17 "The header file sst/core/serialization/impl/serialize_bitset.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"
25namespace SST::Core::Serialization {
31 void operator()(std::bitset<N>& t,
serializer& ser, ser_opt_t UNUSED(options))
33 switch ( ser.mode() ) {
36 ser.mapper().map_hierarchy_start(ser.getMapName(),
new ObjectMapContainer<std::bitset<N>>(&t));
39 for (
size_t i = 0; i < N; ++i )
42 ser.mapper().map_hierarchy_end();
51 SST_FRIEND_SERIALIZE();
58 void operator()(std::bitset<N>*& t,
serializer& ser, ser_opt_t UNUSED(options))
60 if ( ser.mode() == serializer::UNPACK ) t =
new std::bitset<N>;
63 SST_FRIEND_SERIALIZE();
73 ser.mapper().map_hierarchy_start(
75 ser.mapper().map_hierarchy_end();
77 SST_FRIEND_SERIALIZE();
Class used to map containers.
Definition objectMap.h:1420
Definition objectMap.h:1455
Base serialize class.
Definition serialize.h:132
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition serializer.h:43
Definition serialize.h:98