1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2010 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 149 unchanged lines hidden (view full) --- 158} 159 160void 161SimObject::resume() 162{ 163 state = Running; 164} 165 |
166SimObject * 167SimObject::find(const char *name) 168{ 169 SimObjectList::const_iterator i = simObjectList.begin(); 170 SimObjectList::const_iterator end = simObjectList.end(); 171 172 for (; i != end; ++i) { 173 SimObject *obj = *i; 174 if (obj->name() == name) 175 return obj; 176 } 177 178 return NULL; 179} |