Deleted Added
sdiff udiff text old ( 2738:5d7a31c7fa29 ) new ( 2797:b5f26b4eacef )
full compact
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 : _params(p)
69{
70#ifdef DEBUG
71 doDebugBreak = false;
72#endif
73
74 doRecordEvent = !Stats::event_ignore.match(name());
75 simObjectList.push_back(this);
76}
77
78//
79// SimObject constructor: used to maintain static simObjectList
80//
81SimObject::SimObject(const string &_name)
82 : _params(new Params)
83{
84 _params->name = _name;
85#ifdef DEBUG
86 doDebugBreak = false;
87#endif
88
89 doRecordEvent = !Stats::event_ignore.match(name());
90 simObjectList.push_back(this);
91}
92
93void
94SimObject::connect()
95{
96}
97
98void

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

214
215 for (; ri != rend; ++ri) {
216 SimObject *obj = *ri;
217 obj->nameOut(os);
218 obj->serialize(os);
219 }
220}
221
222#ifdef DEBUG
223//
224// static function: flag which objects should have the debugger break
225//
226void
227SimObject::debugObjectBreak(const string &objs)
228{
229 SimObjectList::const_iterator i = simObjectList.begin();

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

246
247void
248SimObject::recordEvent(const std::string &stat)
249{
250 if (doRecordEvent)
251 Stats::recordEvent(stat);
252}
253
254void
255SimObject::drain(Serializer *serializer)
256{
257 serializer->signalDrained();
258}
259
260DEFINE_SIM_OBJECT_CLASS_NAME("SimObject", SimObject)