+
Point of view
All features
class ARRAY3 [E_]
Summary
General purpose, resizable, three dimensional array.
Direct parents
Inherit list: COLLECTION3
Insert list: NATIVE_ARRAY_COLLECTOR
Class invariant
Overview
Creation features
{ANY}
Features
{ANY}
{ARRAY3}
Creation / modification:
{ANY}
Resizing:
{ANY}
Implementation of others feature from COLLECTION3:
{ANY}
Looking and comparison:
{ANY}
Garbage collector tuning (very low-level):
{}
  • mark_native_arrays
    For performance reasons, the unused area of storage is always left as it is when some elements are removed.
Indexing:
{ANY}
Index validity:
{ANY}
Counting:
{ANY}
{ANY}
Looking and comparison:
{ANY}
Printing:
{ANY}
Miscellaneous features:
{ANY}
{ANY}
  • test (e1: E_, e2: E_): BOOLEAN
    In order to avoid run-time type errors, feature safe_equal calls is_equal only when e1 and e2 have exactly the same dynamic type.
  • safe_equal (e1: E_, e2: E_): BOOLEAN
    In order to avoid run-time type errors, feature safe_equal calls is_equal only when e1 and e2 have exactly the same dynamic type.
{}
lower1: INTEGER_32
writable attribute
{ANY}
Lower index bound for dimension 1.
lower2: INTEGER_32
writable attribute
{ANY}
Lower index bound for dimension 2.
lower3: INTEGER_32
writable attribute
{ANY}
Lower index bound for dimension 3.
upper1: INTEGER_32
writable attribute
{ANY}
Upper index bound for dimension 1.
upper2: INTEGER_32
writable attribute
{ANY}
Upper index bound for dimension 2.
upper3: INTEGER_32
writable attribute
{ANY}
Upper index bound for dimension 3.
count1: INTEGER_32
writable attribute
{ANY}
Size of the first dimension.
count2: INTEGER_32
writable attribute
{ANY}
Size of the second dimension.
count3: INTEGER_32
writable attribute
{ANY}
Size of the third dimension.
count: INTEGER_32
writable attribute
{ANY}
Total number of elements.
storage: NATIVE_ARRAY[E_]
writable attribute
To store elements line by line.
capacity: INTEGER_32
writable attribute
Number of elements in storage.
set_limits (line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32)
effective procedure
set lower1,2,3 and upper1,2,3 to the given values and alloc storage if necessary
make (line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32)
effective procedure
{ANY}
Reset all bounds line_minimum / line_maximum / column_minimum column_maximum / depth_min and depth_max using arguments as new values.
from_collection3 (model: COLLECTION3[E_])
effective procedure
{ANY}
Uses model to initialize Current.
from_collection (contents: COLLECTION[E_], line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32)
effective procedure
{ANY}
Reset all bounds using line_min, line_max, column_min, column_max, depth_min, and depth_max.
from_model (model: COLLECTION[COLLECTION[COLLECTION[E_]]])
effective procedure
{ANY}
The model is used to fill line by line the COLLECTION3.
resize (line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32)
effective procedure
{ANY}
Resize bounds of the Current array
item (line: INTEGER_32, column: INTEGER_32, depth: INTEGER_32): E_
effective function
{ANY}
put (element: E_, line: INTEGER_32, column: INTEGER_32, depth: INTEGER_32)
effective procedure
{ANY}
force (x: E_, line: INTEGER_32, column: INTEGER_32, depth: INTEGER_32)
effective procedure
{ANY}
Put element at position (line,column,depth).
set_all_with (element: E_)
effective procedure
{ANY}
Set all item with value v.
replace_all (old_value: E_, new_value: E_)
effective procedure
{ANY}
Replace all occurrences of the element old_value by new_value using is_equal for comparison.
fast_replace_all (old_value: E_, new_value: E_)
effective procedure
{ANY}
Replace all occurrences of the element old_value by new_value using operator = for comparison.
sub_collection3 (line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32): ARRAY3 [E_]
effective function
{ANY}
Create a new object using selected area of Current.
occurrences (elt: E_): INTEGER_32
effective function
{ANY}
Number of occurrences using is_equal.
fast_occurrences (elt: E_): INTEGER_32
effective function
{ANY}
Number of occurrences using =.
has (x: E_): BOOLEAN
effective function
{ANY}
Search if a element x is in the array using equal.
fast_has (x: E_): BOOLEAN
effective function
{ANY}
Search if a element x is in the array using =.
all_default: BOOLEAN
effective function
{ANY}
Do all items have their type's default value?
swap (line1: INTEGER_32, column1: INTEGER_32, depth1: INTEGER_32, line2: INTEGER_32, column2: INTEGER_32, depth2: INTEGER_32)
effective procedure
{ANY}
Swap the element at index (line1,column1,depth1) with the element at index (line2,column2,depth2).
copy (other: ARRAY3 [E_])
effective procedure
{ANY}
mark_native_arrays
effective procedure
{}
For performance reasons, the unused area of storage is always left as it is when some elements are removed.
line_minimum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of lower1.
column_minimum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of lower2.
depth_minimum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of lower3.
line_maximum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of upper1.
column_maximum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of upper2.
depth_maximum: INTEGER_32
frozen
effective function
{ANY}
Equivalent of upper3.
valid_line (line: INTEGER_32): BOOLEAN
frozen
effective function
{ANY}
valid_index1 (line: INTEGER_32): BOOLEAN
effective function
{ANY}
valid_column (column: INTEGER_32): BOOLEAN
frozen
effective function
{ANY}
valid_index2 (column: INTEGER_32): BOOLEAN
effective function
{ANY}
valid_depth (depth: INTEGER_32): BOOLEAN
frozen
effective function
{ANY}
valid_index3 (depth: INTEGER_32): BOOLEAN
effective function
{ANY}
valid_index (line: INTEGER_32, column: INTEGER_32, depth: INTEGER_32): BOOLEAN
frozen
effective function
{ANY}
line_count: INTEGER_32
frozen
effective function
{ANY}
Equivalent of count1.
column_count: INTEGER_32
frozen
effective function
{ANY}
depth_count: INTEGER_32
frozen
effective function
{ANY}
clear_all
frozen
effective procedure
{ANY}
Set all items to default values.
fast_is_equal (other: ARRAY3 [E_]): BOOLEAN
effective function
{ANY}
Do both collections have the same lower1, lower2, lower3, upper1, upper2 and upper3, and items?
is_equal (other: ARRAY3 [E_]): BOOLEAN
effective function
{ANY}
Do both collections have the same lower1, lower2, lower3, upper1, upper2 and upper3, and items?
is_equal_map (other: ARRAY3 [E_]): BOOLEAN
effective function
{ANY}
Do both collections have the same lower, upper, and items?
fill_tagged_out_memory
frozen
effective procedure
{ANY}
Append a viewable information in tagged_out_memory in order to affect the behavior of out, tagged_out, etc.
set_area (element: E_, line_min: INTEGER_32, line_max: INTEGER_32, column_min: INTEGER_32, column_max: INTEGER_32, depth_min: INTEGER_32, depth_max: INTEGER_32)
effective procedure
{ANY}
Set all the elements of the selected area rectangle with element.
test (e1: E_, e2: E_): BOOLEAN
effective function
{ANY}
In order to avoid run-time type errors, feature safe_equal calls is_equal only when e1 and e2 have exactly the same dynamic type.
safe_equal (e1: E_, e2: E_): BOOLEAN
effective function
{ANY}
In order to avoid run-time type errors, feature safe_equal calls is_equal only when e1 and e2 have exactly the same dynamic type.
mark_item (native_array: NATIVE_ARRAY[E_], index: INTEGER_32)
{}
To be used _only_ inside the definition of mark_native_arrays.