GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
TRISTATE
+
Point of view
TRISTATE_VALUES
ANY
INTERNALS_HANDLER
TYPED_INTERNALS
TRISTATE
TRISTATE_VALUES
All features
expanded class TRISTATE
Summary
top
Yes, No, Maybe tri-state operators. Convert to and from booleans. All boolean operators are implemented with
"maybe"
management.
Direct parents
Insert list:
TRISTATE_VALUES
Overview
top
Exported features
Expressions:
to_boolean
:
BOOLEAN
from_boolean
(b:
BOOLEAN
): TRISTATE
is_equal
(other: TRISTATE):
BOOLEAN
Is
other
attached to an object considered equal to current object?
prefix "not"
: TRISTATE
infix "and"
(other: TRISTATE): TRISTATE
infix "or"
(other: TRISTATE): TRISTATE
infix "and then"
(other: TRISTATE): TRISTATE
infix "or else"
(other: TRISTATE): TRISTATE
infix "implies"
(other: TRISTATE): TRISTATE
infix "xor"
(other: TRISTATE): TRISTATE
out_in_tagged_out_memory
Append terse printable representation of current object in
tagged_out_memory
.
with_value
(a_value:
INTEGER_8
): TRISTATE
value
:
INTEGER_8
yes_value
:
INTEGER_8
no_value
:
INTEGER_8
maybe_value
:
INTEGER_8
yes
: TRISTATE
no
: TRISTATE
maybe
: TRISTATE
to_boolean
:
BOOLEAN
effective function
top
require
certain_state:
not
is_equal
(
maybe
)
from_boolean
(b:
BOOLEAN
): TRISTATE
effective function
top
is_equal
(other: TRISTATE):
BOOLEAN
effective function
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
ensure
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)
prefix "not"
: TRISTATE
effective function
top
infix "and"
(other: TRISTATE): TRISTATE
effective function
top
infix "or"
(other: TRISTATE): TRISTATE
effective function
top
infix "and then"
(other: TRISTATE): TRISTATE
effective function
top
infix "or else"
(other: TRISTATE): TRISTATE
effective function
top
infix "implies"
(other: TRISTATE): TRISTATE
effective function
top
infix "xor"
(other: TRISTATE): TRISTATE
effective function
top
out_in_tagged_out_memory
effective procedure
top
Append terse printable representation of current object in
tagged_out_memory
.
with_value
(a_value:
INTEGER_8
): TRISTATE
effective function
top
value
:
INTEGER_8
writable attribute
top
yes_value
:
INTEGER_8
is 1
constant attribute
top
no_value
:
INTEGER_8
is -1
constant attribute
top
maybe_value
:
INTEGER_8
is 0
constant attribute
top
yes
: TRISTATE
effective function
top
no
: TRISTATE
effective function
top
maybe
: TRISTATE
effective function
top