/[eiffelstudio]/trunk/eweasel/tests/ccomp040/array.e
ViewVC logotype

Contents of /trunk/eweasel/tests/ccomp040/array.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 65297 - (show annotations)
Thu Nov 30 20:22:33 2006 UTC (13 years ago) by manus
File size: 928 byte(s)
Moved from trunk/Src/eweasel to trunk/eweasel so that a simple checkout of the source code is not penalized by the lenghty process of checking out all the tests of eweasel.
1 indexing
2
3 description: "[
4 Sequences of values, all of the same type or of a conforming one,
5 accessible through integer indices in a contiguous interval.
6 ]"
7
8 status: "See notice at end of class"
9 date: "$Date$"
10 revision: "$Revision$"
11
12 class ARRAY [G] inherit
13
14 TO_SPECIAL [G]
15
16 create
17 make
18
19 feature -- Initialization
20
21 make (min_index, max_index: INTEGER) is
22 -- Allocate array; set index interval to
23 -- `min_index' .. `max_index'; set all values to default.
24 -- (Make array empty if `min_index' = `max_index' + 1).
25 do
26 end
27
28 feature -- Access
29
30 item, infix "@" (i: INTEGER): G is
31 -- Entry at index `i', if in index interval
32 do
33 end
34
35 entry (i: INTEGER): G is
36 -- Entry at index `i', if in index interval
37 do
38 end
39
40 has (v: G): BOOLEAN is
41 -- Does `v' appear in array?
42 -- (Reference or object equality,
43 -- based on `object_comparison'.)
44 do
45 end
46
47 feature -- Measurement
48
49 end -- class ARRAY

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23