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 |
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 |
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 --- |