note description: "Unbounded queues implemented as linked lists" library: "Free implementation of ELKS library" legal: "See notice at end of class." status: "See notice at end of class." names: linked_queue, dispenser, linked_list representation: linked access: fixed, fifo, membership contents: generic date: "$Date: 2018-12-15 18:06:16 +0000 (Sat, 15 Dec 2018) $" revision: "$Revision: 102608 $" class interface LINKED_QUEUE [G] create make, make_from_iterable create {LINKED_QUEUE} ll_make feature -- Initialization make -- Create linked queue. feature -- Access item: G -- Oldest item ensure then last_element_if_not_empty: not is_empty implies (active = last_element) feature -- Element change put (v: G) -- Add v as newest item. -- Was declared in LINKED_QUEUE as synonym of extend and force. ensure then single_item_constraint: (old is_empty) implies (item = v) extend (v: G) -- Add v as newest item. -- Was declared in LINKED_QUEUE as synonym of put and force. ensure then single_item_constraint: (old is_empty) implies (item = v) force (v: G) -- Add v as newest item. -- Was declared in LINKED_QUEUE as synonym of put and extend. ensure then single_item_constraint: (old is_empty) implies (item = v) feature -- Conversion linear_representation: ARRAYED_LIST [G] -- Representation as a linear structure -- (order is same as original order of insertion) feature -- Duplication copy (other: like Current) -- Update current object using fields of object attached -- to other, so as to yield equal objects. feature -- Not applicable prune (v: like item) -- Remove one occurrence of v. -- Not available. prune_all (v: like item) -- Remove all occurrences of v. -- Not available invariant is_always_after: not is_empty implies after 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 LINKED_QUEUE
Generated by ISE EiffelStudio