+
Point of view
ITERATOR
deferred class ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]
Summary
Class invariant
Overview
Exported features
  • first_node: LINKED_HASHED_DICTIONARY_NODE[V_, K_]
  • last_node: LINKED_HASHED_DICTIONARY_NODE[V_, K_]
Agent-based features:
  • put (v: V_, k: K_)
    Change some existing entry or add the new one.
  • fast_put (v: V_, k: K_)
    Same job as put, but uses basic = for comparison.
  • add (v: V_, k: K_)
    To add a new entry k with its associated value v.
  • remove (k: K_)
    Remove entry k (which may exist or not before this call).
  • fast_remove (k: K_)
    Same job as remove, but uses basic = for comparison.
  • clear_count
    Discard all items (is_empty is True after that call).
  • clear_count_and_capacity
    Discard all items (is_empty is True after that call).
  • set_item (v: V_, index: INTEGER_32)
  • item (index: INTEGER_32): V_
    Item at the corresponding index i.
  • key (index: INTEGER_32): K_
  • copy (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_])
    Reinitialize by copying all associations of other.
  • internal_key (k: K_): K_
    Retrieve the internal key object which correspond to the existing entry k (the one memorized into the Current dictionary).
Counting:
Basic access:
  • infix "@" (k: K_): V_
    The infix notation which is actually a synonym for at.
Looking and searching some value:
To provide iterating facilities:
  • fast_is_equal (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
    Do both dictionaries have the same set of associations?
  • is_equal (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
    Do both dictionaries have the same set of associations?
  • is_equal_map (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
    Do both collections have the same lower, upper, and items?
Display support:
Agents based features:
Other features:
Indexing:
first_node: LINKED_HASHED_DICTIONARY_NODE[V_, K_]
writable attribute
last_node: LINKED_HASHED_DICTIONARY_NODE[V_, K_]
writable attribute
new_iterator_on_keys: ITERATOR[K_]
effective function
new_iterator_on_items: ITERATOR[V_]
effective function
new_iterator: ITERATOR[TUPLE 2[V_, K_]]
effective function
key_map_in (buffer: COLLECTION[K_])
effective procedure
Append in buffer, all available keys (this may be useful to speed up the traversal).
item_map_in (buffer: COLLECTION[V_])
effective procedure
Append in buffer, all available items (this may be useful to speed up the traversal).
for_each_item (action: PROCEDURE[TUPLE[TUPLE 1[V_]]])
effective procedure
Apply action to every item of Current.
for_all_items (test: FUNCTION[TUPLE[TUPLE 1[V_]]]): BOOLEAN
effective function
Do all items satisfy test?
exists_item (test: FUNCTION[TUPLE[TUPLE 1[V_]]]): BOOLEAN
effective function
Does at least one item satisfy test?
aggregate_items (action: FUNCTION[TUPLE[TUPLE 2[V_, V_], V_]], initial: V_): V_
effective function
Aggregate all the elements starting from the initial value.
Default_size: INTEGER_32
is 53
constant attribute
Default size for the storage area in number of items.
capacity: INTEGER_32
writable attribute
Of the buckets storage area.
count: INTEGER_32
writable attribute
Number of available items in the hoard.
has (k: K_): BOOLEAN
effective function
Is there a value currently associated with key k?
at (k: K_): V_
effective function
Return the value associated to key k.
reference_at (k: K_): V_
effective function
Return Void or the value associated with key k.
fast_has (k: K_): BOOLEAN
effective function
Is there a value currently associated with key k?
fast_at (k: K_): V_
effective function
Return the value associated to key k using basic = for comparison.
fast_reference_at (k: K_): V_
effective function
Same work as reference_at, but basic = is used for comparison.
put (v: V_, k: K_)
effective procedure
Change some existing entry or add the new one.
fast_put (v: V_, k: K_)
effective procedure
Same job as put, but uses basic = for comparison.
add (v: V_, k: K_)
effective procedure
To add a new entry k with its associated value v.
remove (k: K_)
effective procedure
Remove entry k (which may exist or not before this call).
fast_remove (k: K_)
effective procedure
Same job as remove, but uses basic = for comparison.
clear_count
effective procedure
Discard all items (is_empty is True after that call).
clear_count_and_capacity
effective procedure
Discard all items (is_empty is True after that call).
set_item (v: V_, index: INTEGER_32)
effective procedure
item (index: INTEGER_32): V_
effective function
Item at the corresponding index i.
key (index: INTEGER_32): K_
effective function
copy (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_])
effective procedure
Reinitialize by copying all associations of other.
internal_key (k: K_): K_
effective function
Retrieve the internal key object which correspond to the existing entry k (the one memorized into the Current dictionary).
is_empty: BOOLEAN
effective function
Is it empty?
infix "@" (k: K_): V_
frozen
effective function
The infix notation which is actually a synonym for at.
occurrences (v: V_): INTEGER_32
effective function
Number of occurrences using is_equal for comparison.
fast_occurrences (v: V_): INTEGER_32
effective function
Number of occurrences using basic = for comparison.
key_at (v: V_): K_
effective function
Retrieve the key used for value v using is_equal for comparison.
fast_key_at (v: V_): K_
effective function
Retrieve the key used for value v using = for comparison.
lower: INTEGER_32
is 1
constant attribute
Minimum index.
upper: INTEGER_32
effective function
Maximum index.
first: V_
effective function
The very first item.
last: V_
effective function
The last item.
keys: TRAVERSABLE[K_]
effective function
An iterable of this map keys
items: TRAVERSABLE[V_]
effective function
An iterable of this map values Usually returns Current because MAP is TRAVERSABLE.
fast_is_equal (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
effective function
Do both dictionaries have the same set of associations?
is_equal (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
effective function
Do both dictionaries have the same set of associations?
is_equal_map (other: ABSTRACT_LINKED_HASHED_DICTIONARY [V_, K_]): BOOLEAN
effective function
Do both collections have the same lower, upper, and items?
out_in_tagged_out_memory
effective procedure
Append terse printable representation of current object in tagged_out_memory.
for_each (action: PROCEDURE[TUPLE[TUPLE 2[V_, K_]]])
effective procedure
Apply action to every [V_, K_] associations of Current.
do_all (action: ROUTINE[TUPLE[TUPLE 2[V_, K_]]])
frozen
effective procedure
Apply action to every [V_, K_] associations of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 2[V_, K_]]]): BOOLEAN
effective function
Do all [V_, K_] associations satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 2[V_, K_]]]): BOOLEAN
effective function
Does at least one [V_, K_] association satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 3[V_, V_, K_], V_]], initial: V_): V_
effective function
Aggregate all the elements starting from the initial value.
enumerate: ENUMERATE[E_]
effective function
get_new_iterator: ITERATOR[E_]
frozen
effective function
generation: INTEGER_32
writable attribute
valid_index (i: INTEGER_32): BOOLEAN
effective function
True when i is valid (i.e., inside actual bounds).