python: add a sorted dictionary class

It would be nice if python had a tree class that would do this for real,
but since we don't, we'll just keep a sorted list of keys and update
it on demand.
This commit is contained in:
Nathan Binkert
2010-07-21 15:53:53 -07:00
parent 3518416917
commit 76c92c3e30
3 changed files with 161 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ PySource('m5.util', 'm5/util/jobfile.py')
PySource('m5.util', 'm5/util/multidict.py')
PySource('m5.util', 'm5/util/orderdict.py')
PySource('m5.util', 'm5/util/smartdict.py')
PySource('m5.util', 'm5/util/sorteddict.py')
SwigSource('m5.internal', 'swig/core.i')
SwigSource('m5.internal', 'swig/debug.i')