deferred class WRAPPER_DICTIONARY [VALUE_ -> WRAPPER, KEY_ -> COMPARABLE_WRAPPER]
Summary
Class invariant
Overview
Exported features
Implementation
Adding:
  • put (v: V_, k: K_) assign at
    Change some existing entry or add the new one.
  • fast_put (v: V_, k: K_) assign fast_at
    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.
  • set_item (v: V_, index: INTEGER_32)
Removing:
Counting:
Basic access:
  • has (k: K_): BOOLEAN
    Is there a value currently associated with key k?
  • at (k: K_): V_
    Return the value associated to key k.
  • infix "@" (k: K_): V_
    The infix notation which is actually a synonym for at.
  • reference_at (k: K_): V_
    Return Void or the value associated with key k.
  • fast_has (k: K_): BOOLEAN
    Is there a value currently associated with key k?
  • fast_at (k: K_): V_
    Return the value associated to key k using basic = for comparison.
  • fast_reference_at (k: K_): V_
    Same work as reference_at, but basic = is used for comparison.
Looking and searching some value:
To provide iterating facilities:
Display support:
Agents based features:
Other features:
  • internal_key (k: K_): K_
    Retrieve the internal key object which correspond to the existing entry k (the one memorized into the Current dictionary).
Other features:
Counting:
Indexing:
Implementation
Various exceptions codes:
Status report:
Basic operations:
  • die (code: INTEGER_32)
    Terminate execution with exit status code, without triggering an exception.
  • raise (name: STRING)
    Raise a developer exception of name name.
  • throw (a_exception: EXCEPTION)
Non-Standard Extensions:
variable-size types
C type definitions (typedefs)
  • comparison_fn_t: POINTER
    typedef comparison_fn_t from /usr/include/stdlib.h Empty by design, used for anchored declarations.
  • timer_t: POINTER
    typedef timer_t from /usr/include/time.h Empty by design, used for anchored declarations.
  • clockid_t: INTEGER_32
    typedef clockid_t from /usr/include/time.h Empty by design, used for anchored declarations.
  • time_t: INTEGER_64
    typedef time_t from /usr/include/time.h Empty by design, used for anchored declarations.
  • clock_t: INTEGER_64
    typedef clock_t from /usr/include/time.h Empty by design, used for anchored declarations.
  • uintmax_t: NATURAL_64
    typedef uintmax_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • intmax_t: INTEGER_64
    typedef intmax_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uintptr_t: NATURAL_64
    typedef uintptr_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • intptr_t: INTEGER_64
    typedef intptr_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_fast64_t: NATURAL_64
    typedef uint_fast64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_fast32_t: NATURAL_64
    typedef uint_fast32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_fast16_t: NATURAL_64
    typedef uint_fast16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_fast8_t: CHARACTER
    typedef uint_fast8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_fast64_t: INTEGER_64
    typedef int_fast64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_fast32_t: INTEGER_64
    typedef int_fast32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_fast16_t: INTEGER_64
    typedef int_fast16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_fast8_t: CHARACTER
    typedef int_fast8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_least64_t: NATURAL_64
    typedef uint_least64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_least32_t: NATURAL_32
    typedef uint_least32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_least16_t: NATURAL_16
    typedef uint_least16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint_least8_t: CHARACTER
    typedef uint_least8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_least64_t: INTEGER_64
    typedef int_least64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_least32_t: INTEGER_32
    typedef int_least32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_least16_t: INTEGER_16
    typedef int_least16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int_least8_t: CHARACTER
    typedef int_least8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint64_t: NATURAL_64
    typedef uint64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint32_t: NATURAL_32
    typedef uint32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint16_t: NATURAL_16
    typedef uint16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • uint8_t: CHARACTER
    typedef uint8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int64_t: INTEGER_64
    typedef int64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int32_t: INTEGER_32
    typedef int32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int16_t: INTEGER_16
    typedef int16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • int8_t: CHARACTER
    typedef int8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • ssize_t: INTEGER_64
    typedef ssize_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • off64_t: INTEGER_64
    typedef off64_t from /usr/include/stdio.h Empty by design, used for anchored declarations.
  • off_t: INTEGER_64
    typedef off_t from /usr/include/stdio.h Empty by design, used for anchored declarations.
  • size_t: NATURAL_64
    typedef size_t from /usr/include/stdlib.h Empty by design, used for anchored declarations.
  • ptrdiff_t: INTEGER_64
    typedef ptrdiff_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
  • error_t: INTEGER_32
    typedef error_t from /usr/include/errno.h Empty by design, used for anchored declarations.
are_items_shared: BOOLEAN
writable attribute
Are the items contained in Currect DICTIONARY shared?
set_shared_items (a_setting: BOOLEAN)
effective procedure
factory: WRAPPER_FACTORY[VALUE_]
writable attribute
The wrapper factory takes a pointer and returns a correct VALUE_ wrapper.
put (v: V_, k: K_) assign at
deferred procedure
Change some existing entry or add the new one.
fast_put (v: V_, k: K_) assign fast_at
deferred procedure
Same job as put, but uses basic = for comparison.
add (v: V_, k: K_)
deferred procedure
To add a new entry k with its associated value v.
set_item (v: V_, index: INTEGER_32)
deferred procedure
remove (k: K_)
deferred procedure
Remove entry k (which may exist or not before this call).
fast_remove (k: K_)
deferred procedure
Same job as remove, but uses basic = for comparison.
clear_count
deferred procedure
Discard all items (is_empty is True after that call).
clear_count_and_capacity
deferred procedure
Discard all items (is_empty is True after that call).
capacity: INTEGER_32
deferred function
Approximation of the actual internal storage capacity.
copy (other: WRAPPER_DICTIONARY [VALUE_ -> WRAPPER, KEY_ -> COMPARABLE_WRAPPER])
effective procedure
Reinitialize by copying all associations of other.
new_iterator_on_items: ITERATOR[V_]
effective function
is_empty: BOOLEAN
effective function
Is it empty?
has (k: K_): BOOLEAN
deferred function
Is there a value currently associated with key k?
at (k: K_): V_
deferred function
Return the value associated to key k.
infix "@" (k: K_): V_
frozen
effective function
The infix notation which is actually a synonym for at.
reference_at (k: K_): V_
deferred function
Return Void or the value associated with key k.
fast_has (k: K_): BOOLEAN
deferred function
Is there a value currently associated with key k?
fast_at (k: K_): V_
deferred function
Return the value associated to key k using basic = for comparison.
fast_reference_at (k: K_): V_
deferred function
Same work as reference_at, but basic = is used for comparison.
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.
item (index: INTEGER_32): V_
deferred function
Item at the corresponding index i.
key (index: INTEGER_32): K_
deferred function
first: V_
effective function
The very first item.
last: V_
effective function
The last item.
new_iterator_on_keys: ITERATOR[K_]
deferred function
new_iterator: ITERATOR[TUPLE 2[V_, K_]]
deferred 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).
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: WRAPPER_DICTIONARY [VALUE_ -> WRAPPER, KEY_ -> COMPARABLE_WRAPPER]): BOOLEAN
effective function
Do both dictionaries have the same set of associations?
is_equal (other: WRAPPER_DICTIONARY [VALUE_ -> WRAPPER, KEY_ -> COMPARABLE_WRAPPER]): BOOLEAN
effective function
Do both dictionaries have the same set of associations?
is_equal_map (other: WRAPPER_DICTIONARY [VALUE_ -> WRAPPER, KEY_ -> COMPARABLE_WRAPPER]): 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.
internal_key (k: K_): K_
deferred function
Retrieve the internal key object which correspond to the existing entry k (the one memorized into the Current dictionary).
enumerate: ENUMERATE[E_]
effective function
get_new_iterator: ITERATOR[E_]
frozen
effective function
generation: INTEGER_32
writable attribute
count: INTEGER_32
deferred function
Number of available items in the hoard.
valid_index (i: INTEGER_32): BOOLEAN
effective function
True when i is valid (i.e., inside actual bounds).
from_external_pointer (a_ptr: POINTER)
effective procedure
set_handle (a_ptr: POINTER)
effective procedure
Set a non-null handle.
handle: POINTER
writable attribute
Pointer to the underlying C "thing" (i.e. a struct)
reference: POINTER
effective function
The address of handle.
Check_instruction: INTEGER_32
is 1
constant attribute
Exception code for violated check.
Class_invariant: INTEGER_32
is 2
constant attribute
Exception code for violated class invariant.
Developer_exception: INTEGER_32
is 3
constant attribute
Exception code for developer exception.
Incorrect_inspect_value: INTEGER_32
is 4
constant attribute
Exception code for inspect statement.
Loop_invariant: INTEGER_32
is 5
constant attribute
Exception code for violated loop invariant
Loop_variant: INTEGER_32
is 6
constant attribute
Exception code for non-decreased loop variant
No_more_memory: INTEGER_32
is 7
constant attribute
Exception code for failed memory allocation
Postcondition: INTEGER_32
is 8
constant attribute
Exception code for violated postcondition.
Precondition: INTEGER_32
is 9
constant attribute
Exception code for violated precondition.
Routine_failure: INTEGER_32
is 10
constant attribute
Exception code for failed routine.
Os_signal: INTEGER_32
is 11
constant attribute
Exception code for a signal received from the OS.
Void_attached_to_expanded: INTEGER_32
is 12
constant attribute
Exception code for attachment of Void value to expanded entity.
Void_call_target: INTEGER_32
is 13
constant attribute
Exception code for feature applied to Void reference
System_level_type_error: INTEGER_32
is 14
constant attribute
Exception code for the system-level type error (this kind of error mostly arise with covariant redefinition).
exception_name: STRING
effective function
name_of_exception (a_exception: INTEGER_32): STRING
effective function
developer_exception: EXCEPTION
effective function
The last developer-thrown exception.
developer_exception_name: STRING
effective function
Name of last developer-raised exception.
is_developer_exception: BOOLEAN
effective function
Is the last exception originally due to a developer exception?
is_developer_named_exception: BOOLEAN
effective function
Is the last exception originally due to a developer exception?
is_developer_exception_of_name (name: STRING): BOOLEAN
effective function
Is the last exception originally due to a developer exception of name name?
assertion_violation: BOOLEAN
effective function
Is last exception originally due to a violated assertion or non-decreasing variant?
exception: INTEGER_32
Code of last exception that occurred.
is_signal: BOOLEAN
effective function
Is last exception originally due to an external event (operating system signal) ?
die (code: INTEGER_32)
effective procedure
Terminate execution with exit status code, without triggering an exception.
raise (name: STRING)
effective procedure
Raise a developer exception of name name.
throw (a_exception: EXCEPTION)
effective procedure
signal_number: INTEGER_32
Signal Number received from OS.
long: INTEGER_64
effective function
a query with the same type of c 'long int'.
long_unsigned: NATURAL_64
effective function
a query with the same type of c 'long unsigned int'.
comparison_fn_t: POINTER
effective function
typedef comparison_fn_t from /usr/include/stdlib.h Empty by design, used for anchored declarations.
timer_t: POINTER
effective function
typedef timer_t from /usr/include/time.h Empty by design, used for anchored declarations.
clockid_t: INTEGER_32
effective function
typedef clockid_t from /usr/include/time.h Empty by design, used for anchored declarations.
time_t: INTEGER_64
effective function
typedef time_t from /usr/include/time.h Empty by design, used for anchored declarations.
clock_t: INTEGER_64
effective function
typedef clock_t from /usr/include/time.h Empty by design, used for anchored declarations.
uintmax_t: NATURAL_64
effective function
typedef uintmax_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
intmax_t: INTEGER_64
effective function
typedef intmax_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uintptr_t: NATURAL_64
effective function
typedef uintptr_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
intptr_t: INTEGER_64
effective function
typedef intptr_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_fast64_t: NATURAL_64
effective function
typedef uint_fast64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_fast32_t: NATURAL_64
effective function
typedef uint_fast32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_fast16_t: NATURAL_64
effective function
typedef uint_fast16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_fast8_t: CHARACTER
effective function
typedef uint_fast8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_fast64_t: INTEGER_64
effective function
typedef int_fast64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_fast32_t: INTEGER_64
effective function
typedef int_fast32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_fast16_t: INTEGER_64
effective function
typedef int_fast16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_fast8_t: CHARACTER
effective function
typedef int_fast8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_least64_t: NATURAL_64
effective function
typedef uint_least64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_least32_t: NATURAL_32
effective function
typedef uint_least32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_least16_t: NATURAL_16
effective function
typedef uint_least16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint_least8_t: CHARACTER
effective function
typedef uint_least8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_least64_t: INTEGER_64
effective function
typedef int_least64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_least32_t: INTEGER_32
effective function
typedef int_least32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_least16_t: INTEGER_16
effective function
typedef int_least16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int_least8_t: CHARACTER
effective function
typedef int_least8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint64_t: NATURAL_64
effective function
typedef uint64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint32_t: NATURAL_32
effective function
typedef uint32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint16_t: NATURAL_16
effective function
typedef uint16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
uint8_t: CHARACTER
effective function
typedef uint8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int64_t: INTEGER_64
effective function
typedef int64_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int32_t: INTEGER_32
effective function
typedef int32_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int16_t: INTEGER_16
effective function
typedef int16_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
int8_t: CHARACTER
effective function
typedef int8_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
ssize_t: INTEGER_64
effective function
typedef ssize_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
off64_t: INTEGER_64
effective function
typedef off64_t from /usr/include/stdio.h Empty by design, used for anchored declarations.
off_t: INTEGER_64
effective function
typedef off_t from /usr/include/stdio.h Empty by design, used for anchored declarations.
size_t: NATURAL_64
effective function
typedef size_t from /usr/include/stdlib.h Empty by design, used for anchored declarations.
ptrdiff_t: INTEGER_64
effective function
typedef ptrdiff_t from /usr/include/stdint.h Empty by design, used for anchored declarations.
error_t: INTEGER_32
effective function
typedef error_t from /usr/include/errno.h Empty by design, used for anchored declarations.