serialize.hh (11800:54436a1784dc) | serialize.hh (12450:b5a0300fc327) |
---|---|
1/* 2 * Copyright (c) 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 58 unchanged lines hidden (view full) --- 67class SimObjectResolver; 68 69typedef std::ostream CheckpointOut; 70 71 72template <class T> 73void paramOut(CheckpointOut &cp, const std::string &name, const T ¶m); 74 | 1/* 2 * Copyright (c) 2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 58 unchanged lines hidden (view full) --- 67class SimObjectResolver; 68 69typedef std::ostream CheckpointOut; 70 71 72template <class T> 73void paramOut(CheckpointOut &cp, const std::string &name, const T ¶m); 74 |
75template <typename DataType, typename BitUnion> | 75template |
76void paramOut(CheckpointOut &cp, const std::string &name, | 76void paramOut(CheckpointOut &cp, const std::string &name, |
77 const BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p) | 77 const BitfieldBackend::BitUnionOperators |
78{ | 78{ |
79 paramOut(cp, name, p.__data); | 79 paramOut(cp, name, p.__storage); |
80} 81 82template <class T> 83void paramIn(CheckpointIn &cp, const std::string &name, T ¶m); 84 | 80} 81 82template <class T> 83void paramIn(CheckpointIn &cp, const std::string &name, T ¶m); 84 |
85template <typename DataType, typename BitUnion> | 85template |
86void paramIn(CheckpointIn &cp, const std::string &name, | 86void paramIn(CheckpointIn &cp, const std::string &name, |
87 BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p) | 87 BitfieldBackend::BitUnionOperators |
88{ | 88{ |
89 paramIn(cp, name, p.__data); | 89 paramIn(cp, name, p.__storage); |
90} 91 92template <class T> 93bool optParamIn(CheckpointIn &cp, const std::string &name, T ¶m, 94 bool warn = true); 95 | 90} 91 92template <class T> 93bool optParamIn(CheckpointIn &cp, const std::string &name, T ¶m, 94 bool warn = true); 95 |
96template <typename DataType, typename BitUnion> | 96template |
97bool optParamIn(CheckpointIn &cp, const std::string &name, | 97bool optParamIn(CheckpointIn &cp, const std::string &name, |
98 BitfieldBackend::BitUnionOperators<DataType, BitUnion> &p, | 98 BitfieldBackend::BitUnionOperators |
99 bool warn = true) 100{ | 99 bool warn = true) 100{ |
101 return optParamIn(cp, name, p.__data, warn); | 101 return optParamIn(cp, name, p.__storage, warn); |
102} 103 104template <class T> 105void arrayParamOut(CheckpointOut &cp, const std::string &name, 106 const T *param, unsigned size); 107 108template <class T> 109void arrayParamOut(CheckpointOut &cp, const std::string &name, --- 282 unchanged lines hidden --- | 102} 103 104template <class T> 105void arrayParamOut(CheckpointOut &cp, const std::string &name, 106 const T *param, unsigned size); 107 108template <class T> 109void arrayParamOut(CheckpointOut &cp, const std::string &name, --- 282 unchanged lines hidden --- |