/[eiffelstudio]/trunk/eweasel/tests/incr071/finite.e
ViewVC logotype

Contents of /trunk/eweasel/tests/incr071/finite.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: 1492 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 "Structures with a finite item count";
5
6 status: "See notice at end of class";
7 names: finite, storage;
8 date: "$Date$";
9 revision: "$Revision$"
10
11 deferred class FINITE [G] inherit
12
13 BOX [G]
14
15 feature -- Measurement
16
17 count: INTEGER is
18 -- Number of items
19 deferred
20 end;
21
22 feature -- Status report
23
24 is_empty: BOOLEAN is
25 -- Is structure empty?
26 do
27 Result := (count = 0)
28 end
29
30 invariant
31
32 empty_definition: is_empty = (count = 0);
33 non_negative_count: count >= 0
34
35 end -- class FINITE
36
37
38 --|----------------------------------------------------------------
39 --| EiffelBase: Library of reusable components for Eiffel.
40 --| Copyright (c) 1993-2006 University of Southern California and contributors.
41 --| For ISE customers the original versions are an ISE product
42 --| covered by the ISE Eiffel license and support agreements.
43 --| EiffelBase may now be used by anyone as FREE SOFTWARE to
44 --| develop any product, public-domain or commercial, without
45 --| payment to ISE, under the terms of the ISE Free Eiffel Library
46 --| License (IFELL) at http://eiffel.com/products/base/license.html.
47 --|
48 --| Interactive Software Engineering Inc.
49 --| ISE Building, 2nd floor
50 --| 270 Storke Road, Goleta, CA 93117 USA
51 --| Telephone 805-685-1006, Fax 805-685-6869
52 --| Electronic mail <info@eiffel.com>
53 --| Customer support e-mail <support@eiffel.com>
54 --| For latest info see award-winning pages: http://eiffel.com
55 --|----------------------------------------------------------------
56

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23