note description: "Structures whose items are sorted according to a total order relation" library: "Free implementation of ELKS library" legal: "See notice at end of class." status: "See notice at end of class." names: sorted_struct, comparable_struct access: index, membership, min, max contents: generic date: "$Date: 2012-07-23 21:02:19 +0000 (Mon, 23 Jul 2012) $" revision: "$Revision: 91989 $" deferred class interface SORTED_STRUCT [G -> COMPARABLE] feature -- Measurement min: like item -- Minimum item require else is_sorted: sorted max: like item -- Maximum item require else is_sorted: sorted median: like item -- Median element ensure median_present: has (Result) feature -- Status report sorted: BOOLEAN -- Is structure sorted? feature -- Transformation sort -- Sort structure. ensure is_sorted: sorted feature -- Inapplicable putt (v: like item) -- Ensure that structure includes 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 SORTED_STRUCT
Generated by ISE EiffelStudio