INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

description: "Stacks (last-in, first-out dispensers), without commitment ", "to a particular representation "
title: "EiffelBase: library of reusable components for Eiffel. ", "Based on EiffelBase library for ISE Eiffel, ", "used with permission. "
project: "EiffelBase Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
key: stack, dispenser
cluster: eiffelbase
deferred class STACK [G]
inherit

DISPENSER [G]
export
{NONE}
prune,
prune_all
redefine
extend,
fill,
force,
put
end
feature -- Element change

extend, force, put (v: G)
-- Push `v' onto top.
ensure
item_pushed: item = v

replace (v: G)
-- Replace top item by `v'.

fill (other: LINEAR [G])
-- Fill with as many items of `other' as possible.
-- Fill items with greatest index from `other' first.
-- Items inserted with lowest index (from `other') will
-- always be on the top of stack.
-- The representations of `other' and current structure
-- need not be the same.
end -- class STACK

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES