note
	description: "Linkable cells containing a reference to their right neighbor"
	library: "Free implementation of ELKS library"
	legal: "See notice at end of class."
	status: "See notice at end of class."
	names: linkable, cell
	representation: linked
	contents: generic
	date: "$Date: 2012-07-23 21:02:19 +0000 (Mon, 23 Jul 2012) $"
	revision: "$Revision: 91989 $"

class 
	LINKABLE [G]

inherit
	CELL [G]
		export
			{CELL, CHAIN} put
			{ANY} item
		end

create {CHAIN}
	put

feature -- Access

	right: detachable like Current
			-- Right neighbor
	
feature {CELL, CHAIN} -- Implementation

	put_right (other: detachable like Current)
			-- Put other to the right of current cell.
		do
			right := other
		ensure
			chained: right = other
		end

	forget_right
			-- Remove right link.
		do
			right := Void
		ensure
			not_chained: right = Void
		end
	
note
	copyright: "Copyright (c) 1984-2012, 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 LINKABLE

Generated by ISE EiffelStudio