note
	description: "Containers whose items are accessible through keys"
	library: "Free implementation of ELKS library"
	legal: "See notice at end of class."
	status: "See notice at end of class."
	names: table, access
	access: key, membership
	contents: generic
	date: "$Date: 2012-05-24 04:13:10 +0000 (Thu, 24 May 2012) $"
	revision: "$Revision: 91981 $"

deferred class 
	TABLE [G, H]

inherit
	BAG [G]
		rename
			put as bag_put
		end

feature -- Access

	item alias "[]" (k: H): G assign force
			-- Entry of key k.
			-- Was declared in TABLE as synonym of at.
		require
			valid_key: valid_key (k)
		deferred
		end

	at alias "@" (k: H): G assign force
			-- Entry of key k.
			-- Was declared in TABLE as synonym of item.
		require
			valid_key: valid_key (k)
		deferred
		end
	
feature -- Status report

	valid_key (k: H): BOOLEAN
			-- Is k a valid key?
		deferred
		end
	
feature -- Element change

	put (v: G; k: H)
			-- Associate value v with key k.
		require
			valid_key: valid_key (k)
		deferred
		end

	force (v: G; k: H)
			-- Associate value v with key k.
		require
			valid_key: valid_key (k)
		deferred
		ensure
			inserted: item (k) = v
		end
	
feature -- Inapplicable

	bag_put (v: G)
			-- Ensure that structure includes v.
		do
		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 TABLE

Generated by ISE EiffelStudio