GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
PYTHON_DICTIONARY_NODE
+
Point of view
All features
ANY
ABSTRACT_PYTHON_DICTIONARY
PYTHON_DICTIONARY_NODE
All features
expanded class PYTHON_DICTIONARY_NODE [V_, K_]
Summary
top
Direct parents
Insert list:
HASHABLE
Overview
top
Creation features
{
ABSTRACT_PYTHON_DICTIONARY
}
make
(a_item: V_, a_key: K_, a_hash:
INTEGER_32
)
default_create
Default creation method.
Features
{
ANY
}
is_equal
(other: PYTHON_DICTIONARY_NODE [V_, K_]):
BOOLEAN
Is
other
attached to an object considered equal to current object?
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
hash_code
:
INTEGER_32
The hash-code value of
Current
.
key
: K_
item
: V_
is_set
:
BOOLEAN
set
(a_item: V_)
{}
default_create
Default creation method.
make
(a_item: V_, a_key: K_, a_hash:
INTEGER_32
)
safe_equal_key
: SAFE_EQUAL[K_]
safe_equal_item
: SAFE_EQUAL[V_]
is_equal
(other: PYTHON_DICTIONARY_NODE [V_, K_]):
BOOLEAN
effective function
{
ANY
}
top
Is
other
attached to an object considered equal to current object?
require
other /= Void
ensure
Result implies hash_code = other.hash_code
commutative:
generating_type = other.generating_type implies Result = other.is_equal(Current)
hash_code
:
INTEGER_32
writable attribute
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
top
The hash-code value of
Current
.
ensure
good_hash_value:
Result >= 0
key
: K_
writable attribute
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
top
require
is_set
item
: V_
writable attribute
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
top
require
is_set
is_set
:
BOOLEAN
writable attribute
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
top
set
(a_item: V_)
effective procedure
{
ABSTRACT_PYTHON_DICTIONARY
,
PYTHON_DICTIONARY_NODE
}
top
require
is_set
ensure
key
= old
key
item
= a_item
is_set
default_create
effective procedure
{}
top
Default creation method.
It is used when no creation method is specified if allowed. Note it may be renamed.
ensure
not
is_set
make
(a_item: V_, a_key: K_, a_hash:
INTEGER_32
)
effective procedure
{}
top
ensure
hash_code
= a_hash
key
= a_key
item
= a_item
is_set
safe_equal_key
: SAFE_EQUAL[K_]
writable attribute
{}
top
safe_equal_item
: SAFE_EQUAL[V_]
writable attribute
{}
top