Deleted Added
sdiff udiff text old ( 4000:9bf49767a9e4 ) new ( 4841:89a9419e7361 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 25 unchanged lines hidden (view full) ---

34 * Serialization Interface Declarations
35 */
36
37#ifndef __SERIALIZE_HH__
38#define __SERIALIZE_HH__
39
40
41#include <list>
42#include <vector>
43#include <iostream>
44#include <map>
45
46#include "sim/host.hh"
47
48class IniFile;
49class Serializable;
50class Checkpoint;

--- 6 unchanged lines hidden (view full) ---

57void paramIn(Checkpoint *cp, const std::string &section,
58 const std::string &name, T &param);
59
60template <class T>
61void arrayParamOut(std::ostream &os, const std::string &name,
62 const T *param, int size);
63
64template <class T>
65void arrayParamOut(std::ostream &os, const std::string &name,
66 const std::vector<T> &param);
67
68template <class T>
69void arrayParamIn(Checkpoint *cp, const std::string &section,
70 const std::string &name, T *param, int size);
71
72template <class T>
73void arrayParamIn(Checkpoint *cp, const std::string &section,
74 const std::string &name, std::vector<T> &param);
75
76void
77objParamIn(Checkpoint *cp, const std::string &section,
78 const std::string &name, SimObject * &param);
79
80
81//
82// These macros are streamlined to use in serialize/unserialize
83// functions. It's assumed that serialize() has a parameter 'os' for

--- 173 unchanged lines hidden ---