sim_object.cc (9195:77fd8912c9d4) | sim_object.cc (9196:87967784f101) |
---|---|
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 --- 99 unchanged lines hidden (view full) --- 108SimObject::resetStats() 109{ 110} 111 112// 113// static function: serialize all SimObjects. 114// 115void | 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 --- 99 unchanged lines hidden (view full) --- 108SimObject::resetStats() 109{ 110} 111 112// 113// static function: serialize all SimObjects. 114// 115void |
116SimObject::serializeAll(ostream &os) | 116SimObject::serializeAll(std::ostream &os) |
117{ 118 SimObjectList::reverse_iterator ri = simObjectList.rbegin(); 119 SimObjectList::reverse_iterator rend = simObjectList.rend(); 120 121 for (; ri != rend; ++ri) { 122 SimObject *obj = *ri; 123 obj->nameOut(os); 124 obj->serialize(os); --- 74 unchanged lines hidden --- | 117{ 118 SimObjectList::reverse_iterator ri = simObjectList.rbegin(); 119 SimObjectList::reverse_iterator rend = simObjectList.rend(); 120 121 for (; ri != rend; ++ri) { 122 SimObject *obj = *ri; 123 obj->nameOut(os); 124 obj->serialize(os); --- 74 unchanged lines hidden --- |