+
Point of view
INTERNALS_HANDLER
expanded class NATURAL_8
Summary
Overview
Exported features
Explicit conversions:
  • infix "+" (other: NATURAL_8): NATURAL_8
    Sum with other (commutative).
  • infix "-" (other: NATURAL_8): NATURAL_8
    Result of subtracting other.
  • infix "*" (other: NATURAL_8): NATURAL_8
    Product by other.
  • infix "/" (other: NATURAL_8): REAL_64
    Division by other.
  • infix "<" (other: NATURAL_8): BOOLEAN
    Is Current strictly less than other?
  • infix "<=" (other: NATURAL_8): BOOLEAN
    Is Current less than or equal other?
  • infix ">" (other: NATURAL_8): BOOLEAN
    Is Current strictly greater than other?
  • infix ">=" (other: NATURAL_8): BOOLEAN
    Is Current greater than or equal than other?
  • is_equal (other: NATURAL_8): BOOLEAN
    Is other attached to an object considered equal to current object?
Conversions:
Modular arithmetic (these wrap around on overflow)
Object printing
Bitwise Logical Operators:
  • infix "#>>" (s: INTEGER_8): NATURAL_8
    Rotate by s positions right.
  • bit_rotate_right (s: INTEGER_8): NATURAL_8
    Rotate by s positions right.
  • infix "#<<" (s: INTEGER_8): NATURAL_8
    Rotate by s positions left.
  • bit_rotate_left (s: INTEGER_8): NATURAL_8
    Rotate by s positions left.
  • bit_rotate (s: INTEGER_8): NATURAL_8
    Rotate by s positions (positive s shifts right, negative left
  • prefix "~": NATURAL_8
    One's complement of Current.
  • bit_not: NATURAL_8
    One's complement of Current.
  • infix "&" (other: NATURAL_8): NATURAL_8
    Bitwise logical and of Current with other.
  • bit_and (other: NATURAL_8): NATURAL_8
    Bitwise logical and of Current with other.
  • infix "|" (other: NATURAL_8): NATURAL_8
    Bitwise logical inclusive or of Current with other.
  • bit_or (other: NATURAL_8): NATURAL_8
    Bitwise logical inclusive or of Current with other.
  • bit_xor (other: NATURAL_8): NATURAL_8
    Bitwise logical exclusive or of Current with other.
  • infix "|>>" (s: INTEGER_8): NATURAL_8
    Shift by s positions right (sign bit copied) bits falling off the end are lost.
  • bit_shift_right (s: INTEGER_8): NATURAL_8
    Shift by s positions right (sign bit copied) bits falling off the end are lost.
  • infix "|<<" (s: INTEGER_8): NATURAL_8
    Shift by s positions left bits falling off the end are lost.
  • bit_shift_left (s: INTEGER_8): NATURAL_8
    Shift by s positions left bits falling off the end are lost.
  • in_range (lower: NATURAL_8, upper: NATURAL_8): BOOLEAN
    Return True if Current is in range [lower..upper]
    See also min, max, compare.
  • compare (other: NATURAL_8): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • three_way_comparison (other: NATURAL_8): INTEGER_32
    If current object equal to other, 0 if smaller, -1; if greater, 1.
  • min (other: NATURAL_8): NATURAL_8
    Minimum of Current and other.
  • max (other: NATURAL_8): NATURAL_8
    Maximum of Current and other.
  • bounded_by (a_min: NATURAL_8, a_max: NATURAL_8): NATURAL_8
    A value that is equal to Current if it is between the limits set by a_min and a_max.
to_natural_16: NATURAL_16
Explicit conversion to NATURAL_16.
to_natural_32: NATURAL_32
Explicit conversion to NATURAL_32.
to_natural_64: NATURAL_64
Explicit conversion to NATURAL_64.
fit_integer_8: BOOLEAN
effective function
Does Current fit in INTEGER_8?
to_integer_8: INTEGER_8
Explicit conversion to INTEGER_8.
to_integer_16: INTEGER_16
Explicit conversion to INTEGER_16.
to_integer_32: INTEGER_32
Explicit conversion to INTEGER_32.
to_integer_64: INTEGER_64
Explicit conversion to INTEGER_64.
to_real_32: REAL_32
effective function
Explicit conversion to REAL_32.
to_real_64: REAL_64
effective function
Explicit conversion to REAL_64.
infix "//" (other: NATURAL_8): NATURAL_8
Quotient of the Euclidian division of Current by other.
infix "\\" (other: NATURAL_8): NATURAL_8
Remainder of the Euclidian division of Current by other.
is_odd: BOOLEAN
effective function
Is odd?
is_even: BOOLEAN
effective function
Is even?
hash_code: INTEGER_32
effective function
The hash-code value of Current.
append_in (buffer: STRING)
effective procedure
Append in the buffer the equivalent of to_string.
append_in_unicode (buffer: UNICODE_STRING)
effective procedure
Append in the buffer the equivalent of to_unicode_string.
decimal_digit: CHARACTER
effective function
Gives the corresponding CHARACTER for range 0..9.
hexadecimal_digit: CHARACTER
effective function
Gives the corresponding CHARACTER for range 0..15.
to_character: CHARACTER
effective function
Return the corresponding ASCII character.
to_number: NUMBER
effective function
Convert Current into a new allocated NUMBER.
bit_count: INTEGER_8
is 8
constant attribute
The number of bits used to store the value of Current (it is 8 for NATURAL_8, 16 for NATURAL_16 and so on) This is actually used only for assertion here, in NATURAL_GENERAL.
infix "+" (other: NATURAL_8): NATURAL_8
Sum with other (commutative).
infix "-" (other: NATURAL_8): NATURAL_8
Result of subtracting other.
infix "*" (other: NATURAL_8): NATURAL_8
Product by other.
infix "/" (other: NATURAL_8): REAL_64
Division by other.
infix "<" (other: NATURAL_8): BOOLEAN
Is Current strictly less than other?
infix "<=" (other: NATURAL_8): BOOLEAN
Is Current less than or equal other?
infix ">" (other: NATURAL_8): BOOLEAN
Is Current strictly greater than other?
infix ">=" (other: NATURAL_8): BOOLEAN
Is Current greater than or equal than other?
is_equal (other: NATURAL_8): BOOLEAN
effective function
Is other attached to an object considered equal to current object?
to_string: STRING
effective function
The decimal view of Current into a new allocated STRING.
to_unicode_string: UNICODE_STRING
effective function
The decimal view of Current into a new allocated UNICODE_STRING.
append_in_format (buffer: STRING, s: INTEGER_32)
effective procedure
Append in the buffer the equivalent of to_string_format.
append_in_unicode_format (buffer: UNICODE_STRING, s: INTEGER_32)
effective procedure
Append in the buffer the equivalent of to_unicode_string_format.
infix "#+" (other: NATURAL_8): NATURAL_8
infix "#-" (other: NATURAL_8): NATURAL_8
infix "#\\" (other: NATURAL_8): NATURAL_8
infix "#//" (other: NATURAL_8): NATURAL_8
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
fill_tagged_out_memory
effective procedure
Append a viewable information in tagged_out_memory in order to affect the behavior of out, tagged_out, etc.
to_hexadecimal: STRING
effective function
to_hexadecimal_in (buffer: STRING)
effective procedure
infix "#>>" (s: INTEGER_8): NATURAL_8
Rotate by s positions right.
bit_rotate_right (s: INTEGER_8): NATURAL_8
Rotate by s positions right.
infix "#<<" (s: INTEGER_8): NATURAL_8
Rotate by s positions left.
bit_rotate_left (s: INTEGER_8): NATURAL_8
Rotate by s positions left.
bit_rotate (s: INTEGER_8): NATURAL_8
Rotate by s positions (positive s shifts right, negative left
See also bit_rotate_right and bit_rotate_left.
prefix "~": NATURAL_8
One's complement of Current.
bit_not: NATURAL_8
One's complement of Current.
infix "&" (other: NATURAL_8): NATURAL_8
Bitwise logical and of Current with other.
bit_and (other: NATURAL_8): NATURAL_8
Bitwise logical and of Current with other.
infix "|" (other: NATURAL_8): NATURAL_8
Bitwise logical inclusive or of Current with other.
bit_or (other: NATURAL_8): NATURAL_8
Bitwise logical inclusive or of Current with other.
bit_xor (other: NATURAL_8): NATURAL_8
Bitwise logical exclusive or of Current with other.
infix "|>>" (s: INTEGER_8): NATURAL_8
Shift by s positions right (sign bit copied) bits falling off the end are lost.
bit_shift_right (s: INTEGER_8): NATURAL_8
Shift by s positions right (sign bit copied) bits falling off the end are lost.
infix "|<<" (s: INTEGER_8): NATURAL_8
Shift by s positions left bits falling off the end are lost.
bit_shift_left (s: INTEGER_8): NATURAL_8
Shift by s positions left bits falling off the end are lost.
in_range (lower: NATURAL_8, upper: NATURAL_8): BOOLEAN
effective function
Return True if Current is in range [lower..upper]
See also min, max, compare.
compare (other: NATURAL_8): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
three_way_comparison (other: NATURAL_8): INTEGER_32
effective function
If current object equal to other, 0 if smaller, -1; if greater, 1.
min (other: NATURAL_8): NATURAL_8
effective function
Minimum of Current and other.
max (other: NATURAL_8): NATURAL_8
effective function
Maximum of Current and other.
bounded_by (a_min: NATURAL_8, a_max: NATURAL_8): NATURAL_8
effective function
A value that is equal to Current if it is between the limits set by a_min and a_max.