Inherit/Insert Summary | |
No developed. |
Constructor Summary | |
|
Slot Summary | |
buckets storage area is the primary hash table of capacity
elements. To search some key, the first access is done in buckets
using the remainder of the division of the key hash_code by
capacity . In order to try to avoid clashes, capacity is always a
prime number (selected using HASH_TABLE_SIZE).
| |
| |
buckets storage area.
Approximation of the actual internal storage capacity .
The capacity will grow automatically when needed
(i.e. capacity is not a limit for the number of values stored).
Also note that the capacity value may not be always accurate
depending of the implementation (anyway, this capacity value
is at least equals to count ).
| |
count of stored elements.
Actual count of stored elements.
Number of available indices.See also is_empty, lower, upper. | |
See also fast_put, add. | |
| |
See also put, add. | |
See also put, fast_put. | |
capacity of the
dictionary is initialized using the Default_size value. Then,
tuning of needed storage capacity is performed automatically
according to usage. if you are really sure that your dictionary
is always really bigger than Default_size, you may consider to use
with_capacity to save some execution time.
Creates an empty dictionary.
| |
remove occurs, storage size may naturally become
smaller than medium_size. Afterall, tuning of storage size is
done automatically according to usage.
|
Basic access: | |
See also fast_has , at .
| |
reference_at if V is a reference type.)
Return the value associated to key k.See also fast_at , reference_at , has .
| |
has just followed by at to get
the corresponding value.
Return NULL or the value associated with key k. Actually, this
feature is useful when the type of values (the type V) is a
reference type, to avoid using has just followed by at to get
the corresponding value.See also fast_reference_at , at , has .
| |
has just followed by at to get
the corresponding value.
| |
See also has , at , fast_at .
| |
See also at , reference_at , fast_reference_at .
| |
has just followed by at to get
the corresponding value.
Same work as reference_at , but basic = is used for comparison.See also reference_at , at , has .
|
Removing: | |
remove procedure actually uses is_equal, you may
consider to use fast_remove for expanded objects as well
while trying to get the very best performances.See also fast_remove , clear_count.
| |
remove , but uses basic = for comparison.See also remove , clear_count.
| |
|
To provide iterating facilities: | |
See also lower, upper, valid_index. | |
| |
See also item_map_in .
| |
See also key_map_in .
| |
|
Other features: | |
See also has , fast_has .
|
Inherit/Insert Detail |
.../base/collection/hashed_dictionary.li line #15
Constructor Detail |
.../base/collection/hashed_dictionary.li line #528
Detail slot |
.../base/collection/hashed_dictionary.li line #20
buckets
storage area is the primary hash table of capacity
elements. To search some key, the first access is done in buckets
using the remainder of the division of the key hash_code by
capacity
. In order to try to avoid clashes, capacity
is always a
prime number (selected using HASH_TABLE_SIZE).
.../base/collection/hashed_dictionary.li line #29
.../base/collection/hashed_dictionary.li line #34
buckets
storage area.
Approximation of the actual internal storage capacity
.
The capacity
will grow automatically when needed
(i.e. capacity
is not a limit for the number of values stored).
Also note that the capacity
value may not be always accurate
depending of the implementation (anyway, this capacity
value
is at least equals to count
).
.../base/collection/hashed_dictionary.li line #37
count
of stored elements.
Actual count
of stored elements.
Number of available indices..../base/collection/hashed_dictionary.li line #157
.../base/collection/hashed_dictionary.li line #185
.../base/collection/hashed_dictionary.li line #213
.../base/collection/hashed_dictionary.li line #241
.../base/collection/hashed_dictionary.li line #535
capacity
of the
dictionary is initialized using the Default_size value. Then,
tuning of needed storage capacity
is performed automatically
according to usage. if you are really sure that your dictionary
is always really bigger than Default_size, you may consider to use
with_capacity
to save some execution time.
Creates an empty dictionary.
.../base/collection/hashed_dictionary.li line #549
remove
occurs, storage size may naturally become
smaller than medium_size. Afterall, tuning of storage size is
done automatically according to usage.
Basic access: |
.../base/collection/hashed_dictionary.li line #44
fast_has
, at
.
.../base/collection/hashed_dictionary.li line #57
reference_at
if V is a reference type.)
Return the value associated to key k.fast_at
, reference_at
, has
.
.../base/collection/hashed_dictionary.li line #71
has
just followed by at
to get
the corresponding value.
Return NULL or the value associated with key k. Actually, this
feature is useful when the type of values (the type V) is a
reference type, to avoid using has
just followed by at
to get
the corresponding value.fast_reference_at
, at
, has
.
.../base/collection/hashed_dictionary.li line #91
has
just followed by at
to get
the corresponding value.
.../base/collection/hashed_dictionary.li line #111
has
, at
, fast_at
.
.../base/collection/hashed_dictionary.li line #123
at
, reference_at
, fast_reference_at
.
.../base/collection/hashed_dictionary.li line #135
has
just followed by at
to get
the corresponding value.
Same work as reference_at
, but basic = is used for comparison.reference_at
, at
, has
.
Removing: |
.../base/collection/hashed_dictionary.li line #261
remove
procedure actually uses is_equal, you may
consider to use fast_remove
for expanded objects as well
while trying to get the very best performances.fast_remove
, clear_count.
.../base/collection/hashed_dictionary.li line #290
remove
, but uses basic = for comparison.remove
, clear_count.
.../base/collection/hashed_dictionary.li line #318
To provide iterating facilities: |
.../base/collection/hashed_dictionary.li line #333
.../base/collection/hashed_dictionary.li line #339
.../base/collection/hashed_dictionary.li line #345
item_map_in
.
.../base/collection/hashed_dictionary.li line #363
key_map_in
.
.../base/collection/hashed_dictionary.li line #381
Other features: |
.../base/collection/hashed_dictionary.li line #400
has
, fast_has
.