note description: "External forward one-step iteration cursor for structures that use SPECIAL for storage." library: "EiffelBase: Library of reusable components for Eiffel." date: "$Date: 2016-04-13 13:29:38 +0000 (Wed, 13 Apr 2016) $" revision: "$Revision: 98619 $" deferred class interface GENERAL_SPECIAL_ITERATION_CURSOR [G, H -> READABLE_INDEXABLE [G]] feature -- Access item: G -- Item at current cursor position. cursor_index: INTEGER_32 -- Index position of cursor in the iteration. target_index: INTEGER_32 -- Index position of target structure for current iteration. last_index: INTEGER_32 -- Last valid index of target structure for current iteration. -- Note that if Is_reversed, first_index might be greater than last_index. Step: INTEGER_32 = 1 -- Distance between successive iteration elements. reversed alias "-": READABLE_INDEXABLE_ITERATION_CURSOR [G] -- Reversed cursor of the iteration. incremented alias "+" (n: like Step): READABLE_INDEXABLE_ITERATION_CURSOR [G] -- Cursor for the iteration with step increased by n. decremented alias "-" (n: like Step): READABLE_INDEXABLE_ITERATION_CURSOR [G] -- Cursor for the iteration with step decreased by n. with_step (n: like Step): READABLE_INDEXABLE_ITERATION_CURSOR [G] -- Cursor for the iteration with step set to n. feature -- Status report after: BOOLEAN -- Are there no more items to iterate over? Is_reversed: BOOLEAN = False -- Are we traversing target structure backwards? is_valid: BOOLEAN -- Is the cursor still compatible with the associated underlying object? is_first: BOOLEAN -- Is cursor at first position? is_last: BOOLEAN -- Is cursor at last position? feature -- Cursor movement start -- Move to first position. forth -- Move to next position. note copyright: "Copyright (c) 1984-2016, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class GENERAL_SPECIAL_ITERATION_CURSOR
Generated by ISE EiffelStudio