+
Point of view
ANY
deferred class SEARCHABLE [E_]
Summary
Overview
Exported features
Looking and Searching:
Indexing:
Accessing:
Agent-based features:
Printing:
Counting:
Agent-based features:
has (x: ANY): BOOLEAN
deferred function
Look for x using is_equal for comparison.
fast_has (x: ANY): BOOLEAN
deferred function
Look for x using basic = for comparison.
first_index_of (element: ANY): INTEGER_32
deferred function
Give the index of the first occurrence of element using is_equal for comparison.
index_of (element: ANY, start_index: INTEGER_32): INTEGER_32
deferred function
Using is_equal for comparison, gives the index of the first occurrence of element at or after start_index.
reverse_index_of (element: ANY, start_index: INTEGER_32): INTEGER_32
deferred function
Using is_equal for comparison, gives the index of the first occurrence of element at or before start_index.
last_index_of (element: ANY): INTEGER_32
deferred function
Using is_equal for comparison, gives the index of the last occurrence of element at or before upper.
fast_first_index_of (element: ANY): INTEGER_32
deferred function
Give the index of the first occurrence of element using basic = for comparison.
fast_index_of (element: ANY, start_index: INTEGER_32): INTEGER_32
deferred function
Using basic = for comparison, gives the index of the first occurrence of element at or after start_index.
fast_reverse_index_of (element: ANY, start_index: INTEGER_32): INTEGER_32
deferred function
Using basic = comparison, gives the index of the first occurrence of element at or before start_index.
fast_last_index_of (element: ANY): INTEGER_32
deferred function
Using basic = for comparison, gives the index of the last occurrence of element at or before upper.
lower: INTEGER_32
deferred function
Minimum index.
upper: INTEGER_32
deferred function
Maximum index.
valid_index (i: INTEGER_32): BOOLEAN
effective function
True when i is valid (i.e., inside actual bounds).
item (i: INTEGER_32): E_
deferred function
Item at the corresponding index i.
first: E_
deferred function
The very first item.
last: E_
deferred function
The last item.
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Do all items satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Does at least one item satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
Aggregate all the elements starting from the initial value.
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
count: INTEGER_32
deferred function
Number of available items in the hoard.
is_empty: BOOLEAN
deferred function
Is the hoard empty ?
See also count.
do_all (action: ROUTINE[TUPLE[TUPLE 1[E_]]])
frozen
effective procedure
Apply action to every item of Current.