Pike v8.1 release 6

Class ADT.History

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.


Method create

ADT.History ADT.History(int max_size)

Description

max_size is the maximum number of entries that can reside in the history at the same time.