LisaacTM Platform

ARRAYED_COLLECTION


Common root for ARRAY(V) and FAST_ARRAY(V).
Inherit/Insert Summary
parent_arrayed No developed.
parent_collection No developed.
 
Slot Summary
storage
Internal access to storage location.
element_sizeof
The size in number of bytes for type E. The size in number of bytes for type E.
capacity
Internal storage capacity in number of item.
upper
Upper index bound. Maximum index.
See also lower, valid_index, item.
subarray to
New collection consisting of items at indexes in [min .. max]. Result has the same dynamic type as Current. See also slice.
set_upper
set_count
to_native_array_uinteger_8
add_last_buffer from to
get_buffer_from_byte size_bytes
 
Implementation of deferred:
first
The very first item.
See also last, item.
second
last
The last item.
See also first, item.
add to
Add a new element at rank index : count is increased by one and range [index .. upper] is shifted right by one position.
remove_last
Remove the last item.
remove_tail
Remove the last n item(s).
replace_all with
Replace all occurrences of the element old_value by new_value using equal for comparison.
fast_replace_all with
Replace all occurrences of the element old_value by new_value using operator = for comparison.
reverse
Reverse the order of the elements.
 
Interfacing with C:
to_external
Gives C access into the internal storage of the ARRAY. Result is pointing the element at index lower.
NOTE: do not free/realloc the Result. Resizing of the array can makes this pointer invalid.
to_native_array
Gives C access into the internal storage of the ARRAY. Result is pointing the element at index lower.
NOTE: do not free/realloc the Result. Resizing of the array can makes this pointer invalid.
 

Inherit/Insert Detail

parent_arrayed

.../base/collection/low_level/arrayed_collection.li line #12

Section:
Inherit

Profile:
- SelfSELFparent_arrayed : ARRAYED

parent_collection

.../base/collection/low_level/arrayed_collection.li line #14

Section:
Inherit

Profile:
- SelfSELFparent_collection : COLLECTIONV)

Detail slot

storage

.../base/collection/low_level/arrayed_collection.li line #18

Section:
Public

Profile:
+ SelfSELFstorage : NATIVE_ARRAYV)

Description:
Internal access to storage location.

element_sizeof

.../base/collection/low_level/arrayed_collection.li line #23

Section:
Public

Profile:
- SelfSELFelement_sizeof : INTEGER

Description:
The size in number of bytes for type E. The size in number of bytes for type E.

capacity

.../base/collection/low_level/arrayed_collection.li line #35

Section:
Public

Profile:
+ SelfSELFcapacity : INTEGER

Description:
Internal storage capacity in number of item.

upper

.../base/collection/low_level/arrayed_collection.li line #38

Section:
Public

Profile:
+ SelfSELFupper : INTEGER

Description:
Upper index bound. Maximum index.
See also lower, valid_index, item.

subarray to

.../base/collection/low_level/arrayed_collection.li line #41

Section:
Public

Profile:
- SelfSELFsubarray   min : INTEGER  to   max : INTEGERSELF

Description:
New collection consisting of items at indexes in [min .. max]. Result has the same dynamic type as Current. See also slice.

set_upper

.../base/collection/low_level/arrayed_collection.li line #151

Section:
Public

Profile:
- SelfSELFset_upper   new_upper : INTEGER

set_count

.../base/collection/low_level/arrayed_collection.li line #167

Section:
Public

Profile:
- SelfSELFset_count   new_count : INTEGER

to_native_array_uinteger_8

.../base/collection/low_level/arrayed_collection.li line #172

Section:
Public

Profile:
- SelfSELFto_native_array_uinteger_8 : NATIVE_ARRAYUINTEGER_8)

add_last_buffer from to

.../base/collection/low_level/arrayed_collection.li line #177

Section:
Public

Profile:
- SelfSELFadd_last_buffer   buf : FAST_ARRAYUINTEGER_8)  from   beg : INTEGER  to   end : INTEGER

get_buffer_from_byte size_bytes

.../base/collection/low_level/arrayed_collection.li line #200

Section:
Public

Profile:
- SelfSELFget_buffer_from_byte   i : INTEGER  size_bytes   s : INTEGERFAST_ARRAYUINTEGER_8)

Implementation of deferred:

first

.../base/collection/low_level/arrayed_collection.li line #64

Section:
Public

Profile:
- SelfSELFfirst : V

Description:
The very first item.
See also last, item.

second

.../base/collection/low_level/arrayed_collection.li line #66

Section:
Public

Profile:
- SelfSELFsecond : V

last

.../base/collection/low_level/arrayed_collection.li line #68

Section:
Public

Profile:
- SelfSELFlast : V

Description:
The last item.
See also first, item.

add to

.../base/collection/low_level/arrayed_collection.li line #70

Section:
Public

Profile:
- SelfSELFadd   element : V  to   index : INTEGER

Description:
Add a new element at rank index : count is increased by one and range [index .. upper] is shifted right by one position.

See:
add_first, add_last, append_collection.

remove_last

.../base/collection/low_level/arrayed_collection.li line #81

Section:
Public

Profile:
- SelfSELFremove_last 

Description:
Remove the last item.

See:
remove_first, remove, remove_tail.

remove_tail

.../base/collection/low_level/arrayed_collection.li line #86

Section:
Public

Profile:
- SelfSELFremove_tail   n : INTEGER

Description:
Remove the last n item(s).

See:
remove_head, remove, remove_last.

replace_all with

.../base/collection/low_level/arrayed_collection.li line #91

Section:
Public

Profile:
- SelfSELFreplace_all   old_value : V  with   new_value : V

Description:
Replace all occurrences of the element old_value by new_value using equal for comparison.

See:
fast_replace_all, move.

fast_replace_all with

.../base/collection/low_level/arrayed_collection.li line #96

Section:
Public

Profile:
- SelfSELFfast_replace_all   old_value : V  with   new_value : V

Description:
Replace all occurrences of the element old_value by new_value using operator = for comparison.

See:
replace_all, move.

reverse

.../base/collection/low_level/arrayed_collection.li line #101

Section:
Public

Profile:
- SelfSELFreverse 

Description:
Reverse the order of the elements.

Interfacing with C:

to_external

.../base/collection/low_level/arrayed_collection.li line #117

Section:
Public

Profile:
- SelfSELFto_external : POINTER

Description:
Gives C access into the internal storage of the ARRAY. Result is pointing the element at index lower.
NOTE: do not free/realloc the Result. Resizing of the array can makes this pointer invalid.

to_native_array

.../base/collection/low_level/arrayed_collection.li line #133

Section:
Public

Profile:
- SelfSELFto_native_array : NATIVE_ARRAYV)

Description:
Gives C access into the internal storage of the ARRAY. Result is pointing the element at index lower.
NOTE: do not free/realloc the Result. Resizing of the array can makes this pointer invalid.