Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:
indexing description: "Circular chains implemented by resizable arrays" status: "See notice at end of class" names: arrayed_circular, ring, sequence representation: array access: index, cursor, membership contents: generic date: "$Date: 2001-11-16 20:32:23 +0000 (Fri, 16 Nov 2001) $" revision: "$Revision: 51435 $" class interface ARRAYED_CIRCULAR [G] create make feature -- Initialization make (n: INTEGER) -- Create a circular chain with n items. require at_least_one: n >= 1 feature -- Access item: G -- Current item cursor: CURSOR -- Current cursor position feature -- Measurement count: INTEGER -- Number of items feature -- Status report full: BOOLEAN -- Is structure filled to capacity? readable: BOOLEAN -- Is there a current item that may be read? valid_cursor (p: CURSOR): BOOLEAN -- Can the cursor be moved to position p? writable: BOOLEAN -- Is there a current item that may be written? isfirst: BOOLEAN -- Is cursor on first item? islast: BOOLEAN -- Is cursor on last item? feature -- Cursor movement go_to (p: CURSOR) -- Move cursor to position p. set_start -- Select current item as the first. start -- Move to position currently selected as first. feature -- Element change replace (v: G) -- Replace current item by v. merge_right (other: like Current) -- Merge other into current structure after cursor -- position. Do not move cursor. Empty other. put_right (v: like item) -- Add v to the right of cursor position. -- Do not move cursor. put_front (v: like item) -- Add v to beginning. -- Do not move cursor. extend (v: like item) -- Add v to end. -- Do not move cursor except if it was off. merge_left (other: like Current) -- Merge other into current structure before cursor -- position. Do not move cursor. Empty other. put_left (v: like item) -- Add v to the left of cursor position. -- Do not move cursor. feature -- Removal remove_left -- Remove item to the left of cursor position. -- Do not move cursor. require else count > 1 remove_right -- Remove item to the right of cursor position. -- Do not move cursor. require else count > 1 wipe_out -- Remove all items. invariant non_negative_count: count >= 0 valid_starter: starter >= 0 and starter <= count 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 ARRAYED_CIRCULAR
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:

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