note description: "Structures for which there exists a traversal policy % %that will visit every element exactly once."; status: "See notice at end of class"; names: traversable, traversing; access: cursor; contents: generic; date: "$Date$"; revision: "$Revision$" deferred class TRAVERSABLE [G] inherit CONTAINER [G] feature -- Access item: G -- Item at current position require not_off: not off deferred end; feature -- Status report off: BOOLEAN -- Is there no current item? deferred end feature -- Cursor movement start -- Move to first position if any. deferred end; invariant empty_constraint: is_empty implies off; end -- class TRAVERSABLE --|---------------------------------------------------------------- --| EiffelBase: Library of reusable components for Eiffel. --| Copyright (c) 1993-2006 University of Southern California and contributors. --| For ISE customers the original versions are an ISE product --| covered by the ISE Eiffel license and support agreements. --| 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. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 270 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support e-mail --| For latest info see award-winning pages: http://eiffel.com --|----------------------------------------------------------------