sim_object.cc (2901:f9a45473ab55) sim_object.cc (3451:185232d74b31)
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
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::connect()
96{
97}
98
99void
100SimObject::init()
101{
102}
103
104//
105// no default statistics, so nothing to do in base implementation
106//
107void

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

155#endif
156 (*i)->regFormulas();
157 }
158
159 Stats::registerResetCallback(&StatResetCB);
160}
161
162//
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//
163// static function: call connect() on all SimObjects.
164//
165void
166SimObject::connectAll()
167{
168 SimObjectList::iterator i = simObjectList.begin();
169 SimObjectList::iterator end = simObjectList.end();
170
171 for (; i != end; ++i) {
172 SimObject *obj = *i;
173 obj->connect();
174 }
175}
176
177//
178// static function: call init() on all SimObjects.
179//
180void
181SimObject::initAll()
182{
183 SimObjectList::iterator i = simObjectList.begin();
184 SimObjectList::iterator end = simObjectList.end();
185

--- 118 unchanged lines hidden ---
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 ---