INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES

indexing

description: "Finite sequences: structures where existing items are ", "arranged and accessed sequentially, and new ones can be ", "added at the end. "
title: "EiffelBase: library of reusable components for Eiffel. ", "Based on EiffelBase library for ISE Eiffel, ", "used with permission. "
project: "EiffelBase Library"
copyright: "(c) 1986-1997 Interactive Software Engineering Inc. ", "Modifications and extensions: ", "(c) 1997 Object Tools ", "All rights reserved. Duplication and distribution prohibited", "May be used only with Visual Eiffel under terms of user ", "license "
key: sequence
cluster: eiffelbase
deferred class SEQUENCE [G]
inherit

ACTIVE [G]
redefine
prune_all
end

BILINEAR [G]
end

FINITE [G]
end
feature -- Status report

readable: BOOLEAN
-- Is there a current item that may be read?

writable: BOOLEAN
-- Is there a current item that may be modified?
feature -- Element change

force (v: G)
-- Add `v' to end.
require
extendible: extendible
ensure
new_count: count = count + 1
item_inserted: has (v)

append (s: SEQUENCE [G])
-- Append a copy of `s'.
require
argument_not_void: s /= void
ensure
new_count: count >= count

put (v: G)
-- Add `v' to end.
ensure
new_count: count = count + 1
feature -- Removal

prune (v: G)
-- Remove the first occurrence of `v' if any.
-- If no such occurrence go `off'.

prune_all (v: G)
-- Remove all occurrences of `v'; go `off'.
end -- class SEQUENCE

INDEX CLUSTER FEATURES SHORT FRAMES NO FRAMES