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
--- 198 unchanged lines hidden (view full) ---
207 showParam(os, *it);
208 it++;
209 }
210 os << "\n";
211}
212
213template <class T>
214void
215paramIn(CheckpointIn &cp, const string &name, T ¶m)
216{
217 const string §ion(Serializable::currentSection());
218 string str;
219 if (!cp.find(section, name, str) || !parseParam(str, param)) {
220 fatal("Can't unserialize '%s:%s'\n", section, name);
221 }
222}
--- 140 unchanged lines hidden (view full) ---
363 fatal(err);
364 }
365
366 // assign parsed value to vector
367 param.push_back(scalar_value);
368 }
369}
370
371
372void
373objParamIn(CheckpointIn &cp, const string &name, SimObject * ¶m)
374{
375 const string §ion(Serializable::currentSection());
376 if (!cp.findObj(section, name, param)) {
377 fatal("Can't unserialize '%s:%s'\n", section, name);
378 }
379}
--- 38 unchanged lines hidden (view full) ---
418INSTANTIATE_PARAM_TEMPLATES(signed long long)
419INSTANTIATE_PARAM_TEMPLATES(unsigned long long)
420INSTANTIATE_PARAM_TEMPLATES(bool)
421INSTANTIATE_PARAM_TEMPLATES(float)
422INSTANTIATE_PARAM_TEMPLATES(double)
423INSTANTIATE_PARAM_TEMPLATES(string)
424INSTANTIATE_PARAM_TEMPLATES(Pixel)
425
426
427/////////////////////////////
428
429/// Container for serializing global variables (not associated with
430/// any serialized object).
431class Globals : public Serializable
432{
433 public:
--- 184 unchanged lines hidden ---
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
--- 198 unchanged lines hidden (view full) ---
207 showParam(os, *it);
208 it++;
209 }
210 os << "\n";
211}
212
213template <class T>
214void
215paramIn(CheckpointIn &cp, const string &name, T ¶m)
216{
217 const string §ion(Serializable::currentSection());
218 string str;
219 if (!cp.find(section, name, str) || !parseParam(str, param)) {
220 fatal("Can't unserialize '%s:%s'\n", section, name);
221 }
222}
--- 140 unchanged lines hidden (view full) ---
363 fatal(err);
364 }
365
366 // assign parsed value to vector
367 param.push_back(scalar_value);
368 }
369}
370
371
372void
373objParamIn(CheckpointIn &cp, const string &name, SimObject * ¶m)
374{
375 const string §ion(Serializable::currentSection());
376 if (!cp.findObj(section, name, param)) {
377 fatal("Can't unserialize '%s:%s'\n", section, name);
378 }
379}
--- 38 unchanged lines hidden (view full) ---
418INSTANTIATE_PARAM_TEMPLATES(signed long long)
419INSTANTIATE_PARAM_TEMPLATES(unsigned long long)
420INSTANTIATE_PARAM_TEMPLATES(bool)
421INSTANTIATE_PARAM_TEMPLATES(float)
422INSTANTIATE_PARAM_TEMPLATES(double)
423INSTANTIATE_PARAM_TEMPLATES(string)
424INSTANTIATE_PARAM_TEMPLATES(Pixel)
425
426
427/////////////////////////////
428
429/// Container for serializing global variables (not associated with
430/// any serialized object).
431class Globals : public Serializable
432{
433 public:
--- 184 unchanged lines hidden ---