sim_object.hh (7492:acc1fbbef239) sim_object.hh (7527:fe90827a663f)
1/*
2 * Copyright (c) 2001-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;

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

89
90 public:
91
92 virtual const std::string name() const { return params()->name; }
93
94 // initialization pass of all objects.
95 // Gets invoked after construction, before unserialize.
96 virtual void init();
1/*
2 * Copyright (c) 2001-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;

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

89
90 public:
91
92 virtual const std::string name() const { return params()->name; }
93
94 // initialization pass of all objects.
95 // Gets invoked after construction, before unserialize.
96 virtual void init();
97 static void initAll();
98
99 // register statistics for this object
100 virtual void regStats();
101 virtual void regFormulas();
102 virtual void resetStats();
103
104 // final initialization before simulation
105 // all state is unserialized so
106 virtual void startup();
97
98 // register statistics for this object
99 virtual void regStats();
100 virtual void regFormulas();
101 virtual void resetStats();
102
103 // final initialization before simulation
104 // all state is unserialized so
105 virtual void startup();
107 static void startupAll();
108
106
109 // static: call reg_stats on all SimObjects
110 static void regAllStats();
111
112 // static: call resetStats on all SimObjects
113 static void resetAllStats();
114
115 // static: call nameOut() & serialize() on all SimObjects
116 static void serializeAll(std::ostream &);
117 static void unserializeAll(Checkpoint *cp);
118
119 // Methods to drain objects in order to take checkpoints
120 // Or switch from timing -> atomic memory model
121 // Drain returns 0 if the simobject can drain immediately or
122 // the number of times the drain_event's process function will be called

--- 22 unchanged lines hidden ---
107 // static: call nameOut() & serialize() on all SimObjects
108 static void serializeAll(std::ostream &);
109 static void unserializeAll(Checkpoint *cp);
110
111 // Methods to drain objects in order to take checkpoints
112 // Or switch from timing -> atomic memory model
113 // Drain returns 0 if the simobject can drain immediately or
114 // the number of times the drain_event's process function will be called

--- 22 unchanged lines hidden ---