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: 2017-03-23 19:18:26 +0000 (Thu, 23 Mar 2017) $" revision: "$Revision: 100033 $" class interface IDENTIFIED create default_create feature -- Access frozen object_id: INTEGER_32 -- Unique for current object in any given session ensure valid_id: Result > 0 implies id_object (Result) = Current frozen id_object (an_id: INTEGER_32): detachable IDENTIFIED -- Object associated with an_id (void if no such object) ensure consistent: Result = Void or else Result.object_id = an_id feature -- Status report frozen id_freed: BOOLEAN -- Has Current been removed from the table? feature -- Removal frozen free_id -- Free the entry associated with object_id if any. ensure object_freed: id_freed feature -- Comparison is_equal (other: like Current): BOOLEAN -- Is other attached to an object considered -- equal to current object? feature -- Duplication copy (other: like Current) -- Update current object using fields of object attached -- to other, so as to yield equal objects. feature -- Removal dispose -- Free the entry associated with object_id if any ensure then object_freed: id_freed note copyright: "Copyright (c) 1984-2017, 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
Generated by ISE EiffelStudio