note description: "[ Collections of items, where each item may occur zero or more times, and the number of occurrences is meaningful. ]" library: "Free implementation of ELKS library" legal: "See notice at end of class." status: "See notice at end of class." names: bag, access access: membership contents: generic date: "$Date: 2012-07-23 21:02:19 +0000 (Mon, 23 Jul 2012) $" revision: "$Revision: 91989 $" deferred class interface BAG [G] feature -- Measurement occurrences (v: G): INTEGER_32 -- Number of times v appears in structure -- (Reference or object equality, -- based on object_comparison.) ensure non_negative_occurrences: Result >= 0 feature -- Element change extend (v: G) -- Add a new occurrence of v. 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 BAG
Generated by ISE EiffelStudio