/[eiffelstudio]/FreeELKS/trunk/library/structures/access/active.e
ViewVC logotype

Contents of /FreeELKS/trunk/library/structures/access/active.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91477 - (show annotations)
Sun Jan 14 09:47:13 2007 UTC (13 years ago) by ericb
File size: 1619 byte(s)
Synchronized with ISE 6.0.65740
1 indexing
2
3 description: "[
4 ``Active'' data structures, which at every stage have
5 a possibly undefined ``current item''.
6 Basic access and modification operations apply to the current item.
7 ]"
8 legal: "See notice at end of class."
9
10 status: "See notice at end of class."
11 names: active, access
12 access: membership
13 contents: generic
14 date: "$Date$"
15 revision: "$Revision$"
16
17 deferred class ACTIVE [G] inherit
18
19 BAG [G]
20
21 feature -- Access
22
23 item: G is
24 -- Current item
25 require
26 readable: readable
27 deferred
28 end
29
30 feature -- Status report
31
32 readable: BOOLEAN is
33 -- Is there a current item that may be read?
34 deferred
35 end
36
37 writable: BOOLEAN is
38 -- Is there a current item that may be modified?
39 deferred
40 end
41
42 feature -- Element change
43
44 replace (v: G) is
45 -- Replace current item by `v'.
46 require
47 writable: writable
48 deferred
49 ensure
50 item_replaced: item = v
51 end
52
53 feature -- Removal
54
55 remove is
56 -- Remove current item.
57 require
58 prunable: prunable
59 writable: writable
60 deferred
61 end
62
63 invariant
64
65 writable_constraint: writable implies readable
66 empty_constraint: is_empty implies (not readable) and (not writable)
67
68 indexing
69 library: "EiffelBase: Library of reusable components for Eiffel."
70 copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
71 license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
72 source: "[
73 Eiffel Software
74 356 Storke Road, Goleta, CA 93117 USA
75 Telephone 805-685-1006, Fax 805-685-6869
76 Website http://www.eiffel.com
77 Customer support http://support.eiffel.com
78 ]"
79
80
81
82
83
84
85
86 end -- class ACTIVE
87
88
89

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23