Class ADT.History (< ValueType >)
- Description
A history is a stack where you can only push entries. When the stack has reached a certain size the oldest entries are removed on every push. Other proposed names for this data type is leaking stack and table (where you push objects onto the table in one end and objects are falling off the table in the other.
- Generic
ValueType
__generic__
mixed
ValueType
=mixed
- Description
Type for the individual elements on the history stack.
- Method
create
ADT.History ADT.History(
int(0..)
max_size
)- Description
max_size is the maximum number of entries that can reside in the history at the same time.