home
wiki
classes/clusters list
class information
+
Point of view
INTERNALS
ANY
INTERNALS
INTERNALS_HANDLER
All features
class NATIVE_ARRAY_INTERNALS [E_]
Summary
top
Warning:
This interface is tentative and may change to a large extent from SmartEiffel 2.2 to SmartEiffel 2.3.
NATIVE_ARRAY_INTERNALS
plays the same role as
TYPED_INTERNALS
, except they describe
NATIVE_ARRAY
's.
Direct parents
inherit list:
TYPED_INTERNALS
Class invariant
top
type_generator
.is_equal("NATIVE_ARRAY")
Overview
top
creation features
exported features
Getting information about the described object's type
type_is_native_array
:
BOOLEAN
Is the type described by
Current
a
NATIVE_ARRAY
?
type_attribute_is_expanded
(i:
INTEGER_32
):
BOOLEAN
Is the type of the
i
th attribute expanded?
type_item_is_expanded
:
BOOLEAN
type_can_be_assigned_to_attribute
(other:
INTERNALS
, i:
INTEGER_32
):
BOOLEAN
Can the object attached to
other
be assigned to the
i
th attribute?
type_can_be_assigned_to_item
(other:
INTERNALS
):
BOOLEAN
Getting information about the described object's type
type_generator
:
STRING
Name of the base class of the type described by
Current
.
type_generating_type
:
STRING
Name of the type described by
Current
.
type_is_expanded
:
BOOLEAN
Is the type described by
Current
expanded?
is_equal
(other: NATIVE_ARRAY_INTERNALS [E_]):
BOOLEAN
Is
other
attached to an object considered equal to current object?
type_is_native_array
:
BOOLEAN
constant attribute
top
Is the type described by
Current
a
NATIVE_ARRAY
?
ensure
Result = type_generator.is_equal("NATIVE_ARRAY")
type_attribute_is_expanded
(i:
INTEGER_32
):
BOOLEAN
effective function
top
Is the type of the
i
th attribute expanded?
type_item_is_expanded
:
BOOLEAN
top
type_can_be_assigned_to_attribute
(other:
INTERNALS
, i:
INTEGER_32
):
BOOLEAN
effective function
top
Can the object attached to
other
be assigned to the
i
th attribute?
ensure
other = Void implies Result = not type_attribute_is_expanded(i)
type_can_be_assigned_to_item
(other:
INTERNALS
):
BOOLEAN
top
type_generator
:
STRING
top
Name of the base class of the type described by
Current
.
For instance, if
Current
is a
TYPED_INTERNALS
[
ARRAY
[INTEGER]],
type_generator
is
"ARRAY"
.
type_generating_type
:
STRING
top
Name of the type described by
Current
.
For instance, if
Current
is a
TYPED_INTERNALS
[
ARRAY
[INTEGER]],
type_generating_type
is
"ARRAY[INTEGER]"
.
type_is_expanded
:
BOOLEAN
top
Is the type described by
Current
expanded?
is_equal
(other: NATIVE_ARRAY_INTERNALS [E_]):
BOOLEAN
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)