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; --- 78 unchanged lines hidden (view full) --- 87#endif 88 89 doRecordEvent = !Stats::event_ignore.match(name()); 90 simObjectList.push_back(this); 91 state = Running; 92} 93 94void |
95SimObject::init() 96{ 97} 98 99// 100// no default statistics, so nothing to do in base implementation 101// 102void --- 47 unchanged lines hidden (view full) --- 150#endif 151 (*i)->regFormulas(); 152 } 153 154 Stats::registerResetCallback(&StatResetCB); 155} 156 157// |
158// static function: call init() on all SimObjects. 159// 160void 161SimObject::initAll() 162{ 163 SimObjectList::iterator i = simObjectList.begin(); 164 SimObjectList::iterator end = simObjectList.end(); 165 --- 118 unchanged lines hidden --- |