Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Go to:
note description: "Priority queues implemented as heaps" library: "Free implementation of ELKS library" legal: "See notice at end of class." status: "See notice at end of class." names: sorted_priority_queue, dispenser, heap representation: heap access: fixed, membership contents: generic date: "$Date: 2012-05-23 21:13:10 -0700 (Wed, 23 May 2012) $" revision: "$Revision: 91981 $" class interface HEAP_PRIORITY_QUEUE [G -> COMPARABLE] create make feature -- Initialization make (n: INTEGER_32) -- Allocate heap space. feature -- Access item: G -- Entry at top of heap. has (v: G): BOOLEAN -- Does structure include `v'? -- (Reference or object equality, -- based on object_comparison.) feature -- Measurement count: INTEGER_32 -- Number of items capacity: INTEGER_32 -- Number of items that may be stored occurrences (v: G): INTEGER_32 -- Number of times `v' appears in structure -- (Reference or object equality, -- based on object_comparison.) index_set: INTEGER_INTERVAL -- Range of acceptable indexes ensure then count_definition: Result.count = count feature -- Status report extendible: BOOLEAN -- May items be added? replaceable: BOOLEAN -- Can current item be replaced? Prunable: BOOLEAN = True -- May items be removed? (Answer: yes.) feature -- Comparison is_equal (other: like Current): BOOLEAN -- Is `other' attached to an object considered -- equal to current object? feature -- Element change force (v: like item) -- Add item `v' at its proper position. put (v: like item) -- Insert item `v' at its proper position. extend (v: like item) -- Add item `v'. feature -- Duplication copy (other: like Current) -- Update current object using fields of object attached -- to `other', so as to yield equal objects. feature -- Removal remove -- Remove item of highest value. prune (v: G) -- Remove first occurrence of `v' if any. wipe_out -- Remove all items. feature -- Resizing grow (i: INTEGER_32) -- Ensure that capacity is at least `i'. trim -- Decrease capacity to the minimum value. -- Apply to reduce allocated storage. ensure then same_items: linear_representation.is_equal (old linear_representation) feature -- Conversion linear_representation: ARRAYED_LIST [G] -- Representation as a linear structure -- (Sorted according to decreasing priority) feature -- Duplication duplicate (n: INTEGER_32): like Current -- New priority queue containing `n' greatest items of Current. require n_positive: n >= 0 n_in_bounds: n <= count 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 HEAP_PRIORITY_QUEUE
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Go to:

-- Generated by ISE Eiffel --
For more details: www.eiffel.com