SimObject.py (9940:acc015106ac8) SimObject.py (9953:9caba3b84a9b)
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

779 assert self._parent is old_parent
780 self._parent = None
781
782 # Also implemented by SimObjectVector
783 def set_parent(self, parent, name):
784 self._parent = parent
785 self._name = name
786
1# Copyright (c) 2012 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

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

779 assert self._parent is old_parent
780 self._parent = None
781
782 # Also implemented by SimObjectVector
783 def set_parent(self, parent, name):
784 self._parent = parent
785 self._name = name
786
787 # Return parent object of this SimObject, not implemented by SimObjectVector
788 # because the elements in a SimObjectVector may not share the same parent
789 def get_parent(self):
790 return self._parent
791
787 # Also implemented by SimObjectVector
788 def get_name(self):
789 return self._name
790
791 # Also implemented by SimObjectVector
792 def has_parent(self):
793 return self._parent is not None
794

--- 335 unchanged lines hidden ---
792 # Also implemented by SimObjectVector
793 def get_name(self):
794 return self._name
795
796 # Also implemented by SimObjectVector
797 def has_parent(self):
798 return self._parent is not None
799

--- 335 unchanged lines hidden ---