params.py (8321:9f34cf472451) params.py (8459:b8c3c20d0385)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
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;

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

179
180 def ini_str(self):
181 return ' '.join([v.ini_str() for v in self])
182
183 def getValue(self):
184 return [ v.getValue() for v in self ]
185
186 def unproxy(self, base):
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
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;

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

179
180 def ini_str(self):
181 return ' '.join([v.ini_str() for v in self])
182
183 def getValue(self):
184 return [ v.getValue() for v in self ]
185
186 def unproxy(self, base):
187 return [v.unproxy(base) for v in self]
187 if len(self) == 1 and isinstance(self[0], AllProxy):
188 return self[0].unproxy(base)
189 else:
190 return [v.unproxy(base) for v in self]
188
189class SimObjectVector(VectorParamValue):
190 # support clone operation
191 def __call__(self, **kwargs):
192 return SimObjectVector([v(**kwargs) for v in self])
193
194 def clear_parent(self, old_parent):
195 for v in self:

--- 1289 unchanged lines hidden ---
191
192class SimObjectVector(VectorParamValue):
193 # support clone operation
194 def __call__(self, **kwargs):
195 return SimObjectVector([v(**kwargs) for v in self])
196
197 def clear_parent(self, old_parent):
198 for v in self:

--- 1289 unchanged lines hidden ---