sim_object.cc (7460:41550bb10e08) sim_object.cc (7492:acc1fbbef239)
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;

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

68 state = Running;
69}
70
71void
72SimObject::init()
73{
74}
75
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;

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

68 state = Running;
69}
70
71void
72SimObject::init()
73{
74}
75
76void
77SimObject::startup()
78{
79}
80
76//
77// no default statistics, so nothing to do in base implementation
78//
79void
80SimObject::regStats()
81{
82}
83

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

190 if(cp->sectionExists(obj->name()))
191 obj->unserialize(cp, obj->name());
192 else
193 warn("Not unserializing '%s': no section found in checkpoint.\n",
194 obj->name());
195 }
196}
197
81//
82// no default statistics, so nothing to do in base implementation
83//
84void
85SimObject::regStats()
86{
87}
88

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

195 if(cp->sectionExists(obj->name()))
196 obj->unserialize(cp, obj->name());
197 else
198 warn("Not unserializing '%s': no section found in checkpoint.\n",
199 obj->name());
200 }
201}
202
203
204void
205SimObject::startupAll()
206{
207 SimObjectList::iterator i = simObjectList.begin();
208 SimObjectList::iterator end = simObjectList.end();
209
210 while (i != end) {
211 (*i)->startup();
212 ++i;
213 }
214}
215
216
198#ifdef DEBUG
199//
200// static function: flag which objects should have the debugger break
201//
202void
203SimObject::debugObjectBreak(const string &objs)
204{
205 SimObjectList::const_iterator i = simObjectList.begin();

--- 62 unchanged lines hidden ---
217#ifdef DEBUG
218//
219// static function: flag which objects should have the debugger break
220//
221void
222SimObject::debugObjectBreak(const string &objs)
223{
224 SimObjectList::const_iterator i = simObjectList.begin();

--- 62 unchanged lines hidden ---