Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:
indexing description: "Stacks with a bounded physical size, implemented by arrays" status: "See notice at end of class" names: dispenser, array representation: array access: fixed, lifo, membership size: fixed contents: generic date: "$Date: 2001-11-16 20:32:23 +0000 (Fri, 16 Nov 2001) $" revision: "$Revision: 51435 $" class interface BOUNDED_STACK [G] create make feature -- Initialization make (n: INTEGER) -- Create a stack for at most n items. require non_negative_argument: n >= 0 ensure stack_allocated: capacity = n empty_stack: count = 0 feature -- Access item: G -- Last item pushed (i.e. top) require else not_empty: count > 0 feature -- Measurement count: INTEGER capacity: INTEGER occurrences (v: G): INTEGER feature -- Element change extend (v: like item) -- Push v on top. -- Was declared in BOUNDED_STACK as synonym of force and put. force (v: like item) -- Push v on top. -- Was declared in BOUNDED_STACK as synonym of extend and put. put (v: like item) -- Push v on top. -- Was declared in BOUNDED_STACK as synonym of extend and force. replace (v: like item) -- Replace top item by v. feature -- Access has (v: G): BOOLEAN -- Does v appear in stack? -- (Reference or object equality, -- based on object_comparison.) feature -- Removal remove -- Remove top item. require else not_empty: count /= 0 wipe_out -- Remove all items. feature -- Status report extendible: BOOLEAN ensure then Result = not full Resizable: BOOLEAN is True Prunable: BOOLEAN is True feature -- Conversion linear_representation: ARRAYED_LIST [G] -- Representation as a linear structure -- (in the reverse order of original insertion) invariant count_small_enough: count <= capacity extendible_definition: extendible = not full indexing library: "[ EiffelBase: Library of reusable components for Eiffel. ]" status: "[ Copyright 1986-2001 Interactive Software Engineering (ISE). For ISE customers the original versions are an ISE product covered by the ISE Eiffel license and support agreements. ]" license: "[ EiffelBase may now be used by anyone as FREE SOFTWARE to develop any product, public-domain or commercial, without payment to ISE, under the terms of the ISE Free Eiffel Library License (IFELL) at http://eiffel.com/products/base/license.html. ]" source: "[ Interactive Software Engineering Inc. ISE Building 360 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Electronic mail <info@eiffel.com> Customer support http://support.eiffel.com ]" info: "[ For latest info see award-winning pages: http://eiffel.com ]" end -- class BOUNDED_STACK
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:

-- Generated by ISE Eiffel --
For more details: www.eiffel.com