- indexing
- description: "Structures with a finite item count"
- 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: finite, storage
- cluster: eiffelbase
deferred class FINITE [G]
- inherit
-
BOX
[G]
- end
- feature -- Measurement
-
count: INTEGER
-
-
-- Number of items
- feature -- Status report
-
empty: BOOLEAN
-
-
-- Is structure empty?
- invariant
-
empty_definition:
empty = (count = 0)
-
non_negative_count:
count >= 0
end -- class FINITE