TabulatedComputationPackage(Key, Entry)ΒΆ
newdata.spad line 25 [edit on github]
Key: SetCategory
Entry: SetCategory
TabulatedComputationPackage(Key , Entry) provides some modest support for dealing with operations with type Key -> Entry. The result of such operations can be stored and retrieved with this package by using a hash-table. The user does not need to worry about the management of this hash-table. However, only one hash-table is built by calling TabulatedComputationPackage(Key , Entry).
- clearTable!: () -> Void
clearTable!()clears the hash-table and assumes that it will no longer be used.
- extractIfCan: Key -> Union(Entry, failed)
extractIfCan(x)searches the item whose key isx.
- initTable!: () -> Void
initTable!()initializes the hash-table.
- insert!: (Key, Entry) -> Void
insert!(x, y)stores the item whose key isxand whose entry isy.
- makingStats?: () -> Boolean
makingStats?()returnstrueiff the statistics process is running.
- printInfo!: (String, String) -> Void
printInfo!(x, y)initializes the messages to be printed when manipulating items from the hash-table. If a key is retrieved thenxis displayed. If an item is stored thenyis displayed.
- printingInfo?: () -> Boolean
printingInfo?()returnstrueiff messages are printed when manipulating items from the hash-table.
- printStats!: () -> Void
printStats!()prints the statistics.
- startStats!: String -> Void
startStats!(x)initializes the statistics process and sets the comments to display when statistics are printed
- usingTable?: () -> Boolean
usingTable?()returnstrueiff the hash-table is used