note
	description: "Objects identified, uniquely during any session, by an integer"
	library: "Free implementation of ELKS library"
	status: "See notice at end of class."
	legal: "See notice at end of class."
	date: "$Date: 2020-03-12 11:52:53 +0000 (Thu, 12 Mar 2020) $"
	revision: "$Revision: 103976 $"

class 
	IDENTIFIED_ROUTINES

create 
	default_create

feature -- Basic operations

	eif_id_object (an_id: INTEGER_32): detachable ANY
			-- Object associated with an_id
		require
			an_id_non_negative: an_id >= 0
		external
			"C use %"eif_object_id.h%""
		ensure
			instance_free: class
		end

	eif_object_id (an_object: ANY): INTEGER_32
			-- New identifier for an_object
		external
			"C use %"eif_object_id.h%""
		ensure
			instance_free: class
			eif_object_id_positive: Result > 0
			inserted: eif_id_object (Result) = an_object
		end

	eif_current_object_id: INTEGER_32
			-- New identifier for Current
		external
			"built_in"
		ensure
			eif_current_object_id: Result > 0
			inserted: eif_is_object_id_of_current (Result)
		end

	eif_is_object_id_of_current (an_id: INTEGER_32): BOOLEAN
			-- Is an_id the associated object ID of Current.
		require
			an_id_non_negative: an_id >= 0
		external
			"built_in"
		end

	eif_object_id_free (an_id: INTEGER_32)
			-- Free the entry an_id
		require
			an_id_non_negative: an_id >= 0
		external
			"C use %"eif_object_id.h%""
		ensure
			instance_free: class
			removed: eif_id_object (an_id) = Void
		end
	
note
	copyright: "Copyright (c) 1984-2018, 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 IDENTIFIED_ROUTINES

Generated by ISE EiffelStudio