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 --- 41 unchanged lines hidden (view full) --- 50#ifndef __SERIALIZE_HH__ 51#define __SERIALIZE_HH__ 52 53 54#include <iostream> 55#include <list> 56#include <map> 57#include <stack> |
58#include <set> |
59#include <vector> 60 61#include "base/bitunion.hh" 62#include "base/types.hh" 63 64class IniFile; 65class Serializable; 66class CheckpointIn; --- 53 unchanged lines hidden (view full) --- 120void arrayParamOut(CheckpointOut &cp, const std::string &name, 121 const std::vector<T> ¶m); 122 123template <class T> 124void arrayParamOut(CheckpointOut &cp, const std::string &name, 125 const std::list<T> ¶m); 126 127template <class T> |
128void arrayParamOut(CheckpointOut &cp, const std::string &name, 129 const std::set<T> ¶m); 130 131template <class T> |
132void arrayParamIn(CheckpointIn &cp, const std::string &name, 133 T *param, unsigned size); 134 135template <class T> 136void arrayParamIn(CheckpointIn &cp, const std::string &name, 137 std::vector<T> ¶m); 138 139template <class T> 140void arrayParamIn(CheckpointIn &cp, const std::string &name, 141 std::list<T> ¶m); 142 |
143template <class T> 144void arrayParamIn(CheckpointIn &cp, const std::string &name, 145 std::set<T> ¶m); 146 |
147void 148objParamIn(CheckpointIn &cp, const std::string &name, SimObject * ¶m); 149 150// 151// These macros are streamlined to use in serialize/unserialize 152// functions. It's assumed that serialize() has a parameter 'os' for 153// the ostream, and unserialize() has parameters 'cp' and 'section'. 154#define SERIALIZE_SCALAR(scalar) paramOut(cp, #scalar, scalar) --- 272 unchanged lines hidden --- |