From: Andreas Sandberg Date: Tue, 7 Jul 2015 08:51:03 +0000 (+0100) Subject: sim: Add serialization macros for std containers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7cd5db8c6d7ea4ad23da5c9799a28e2224fab449;p=gem5.git sim: Add serialization macros for std containers --- diff --git a/src/sim/serialize.hh b/src/sim/serialize.hh index 888dba614..2fb7cddd0 100644 --- a/src/sim/serialize.hh +++ b/src/sim/serialize.hh @@ -160,6 +160,12 @@ void fromSimObject(T &t, SimObject *s) #define UNSERIALIZE_ARRAY(member, size) \ arrayParamIn(cp, section, #member, member, size) +#define SERIALIZE_CONTAINER(member) \ + arrayParamOut(os, #member, member) + +#define UNSERIALIZE_CONTAINER(member) \ + arrayParamIn(cp, section, #member, member) + #define SERIALIZE_OBJPTR(objptr) paramOut(os, #objptr, (objptr)->name()) #define UNSERIALIZE_OBJPTR(objptr) \