Deleted Added
sdiff udiff text old ( 10422:148b96b7bc77 ) new ( 10905:a6ca6831e775 )
full compact
1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * Copyright (c) 2010 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

121 * unserialize() if there is a corresponding section in the
122 * checkpoint. However, objects can override loadState() to get
123 * other behaviors, e.g., doing other programmed initializations
124 * after unserialize(), or complaining if no checkpoint section is
125 * found.
126 *
127 * @param cp Checkpoint to restore the state from.
128 */
129 virtual void loadState(Checkpoint *cp);
130
131 /**
132 * initState() is called on each SimObject when *not* restoring
133 * from a checkpoint. This provides a hook for state
134 * initializations that are only required for a "cold start".
135 */
136 virtual void initState();
137

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

170
171 /**
172 * Provide a default implementation of the drain interface that
173 * simply returns 0 (draining completed) and sets the drain state
174 * to Drained.
175 */
176 unsigned int drain(DrainManager *drainManger);
177
178 /**
179 * Serialize all SimObjects in the system.
180 */
181 static void serializeAll(std::ostream &os);
182
183#ifdef DEBUG
184 public:
185 bool doDebugBreak;
186 static void debugObjectBreak(const std::string &objs);
187#endif
188
189 /**

--- 12 unchanged lines hidden ---