Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:
indexing description: "References to objects containing a real value" status: "See notice at end of class" date: "$Date: 2001-11-16 20:32:23 +0000 (Fri, 16 Nov 2001) $" revision: "$Revision: 51435 $" class interface REAL_REF feature -- Access item: REAL -- Numeric real value hash_code: INTEGER -- Hash code value sign: INTEGER -- Sign value (0, -1 or 1) ensure three_way: Result = three_way_comparison (zero) one: like Current -- Neutral element for "*" and "/" zero: like Current -- Neutral element for "+" and "-" feature -- Comparison infix "<" (other: like Current): BOOLEAN -- Is other greater than current real? is_equal (other: like Current): BOOLEAN -- Is other attached to an object of the same type -- as current object and identical to it? three_way_comparison (other: REAL_REF): INTEGER -- If current object equal to other, 0; -- if smaller, -1; if greater, 1 feature -- Element change set_item (r: REAL) -- Make r the value of item. feature -- Status report divisible (other: REAL_REF): BOOLEAN -- May current object be divided by other? ensure then ref_not_exact_zero: Result implies (other.item /= 0.0) exponentiable (other: NUMERIC): BOOLEAN -- May current object be elevated to the power other? ensure then safe_values: ((other.conforms_to (0) and item /= 0.0) or (other.conforms_to (0.0) and item > 0.0)) implies Result is_hashable: BOOLEAN -- May current object be hashed? -- (True if it is not its type's default.) feature -- Conversion truncated_to_integer: INTEGER -- Integer part (same sign, largest absolute -- value no greater than current object's) ceiling: INTEGER -- Smallest integral value no smaller than current object ensure result_no_smaller: Result >= item close_enough: Result - item < item.one floor: INTEGER -- Greatest integral value no greater than current object ensure result_no_greater: Result <= item close_enough: item - Result < Result.one rounded: INTEGER -- Rounded integral value ensure definition: Result = sign * ((abs + 0.5).floor) feature -- Basic operations abs: REAL -- Absolute value ensure non_negative: Result >= 0.0 same_absolute_value: (Result = item) or (Result = - item) infix "+" (other: like Current): like Current -- Sum with other infix "-" (other: like Current): like Current -- Result of subtracting other infix "*" (other: like Current): like Current -- Product by other infix "/" (other: like Current): like Current -- Division by other infix "^" (other: NUMERIC): DOUBLE -- Current real to the power other prefix "+": like Current -- Unary plus prefix "-": like Current -- Unary minus feature -- Output out: STRING -- Printable representation of real value invariant sign_times_abs: sign * abs = item indexing library: "[ EiffelBase: Library of reusable components for Eiffel. ]" status: "[ Copyright 1986-2001 Interactive Software Engineering (ISE). For ISE customers the original versions are an ISE product covered by the ISE Eiffel license and support agreements. ]" license: "[ EiffelBase may now be used by anyone as FREE SOFTWARE to develop any product, public-domain or commercial, without payment to ISE, under the terms of the ISE Free Eiffel Library License (IFELL) at http://eiffel.com/products/base/license.html. ]" source: "[ Interactive Software Engineering Inc. ISE Building 360 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Electronic mail <info@eiffel.com> Customer support http://support.eiffel.com ]" info: "[ For latest info see award-winning pages: http://eiffel.com ]" end -- class REAL_REF
Classes Clusters Cluster hierarchy Chart Relations Text Flat Contracts Flat contracts Go to:

-- Generated by ISE Eiffel --
For more details: www.eiffel.com