GNU
|
Liberty Eiffel
|
Automated Tests
|
Wiki
|
Savannah project
|
Debian packages
|
Documentation
>
libraries
>
UI_COLLECTION
+
Point of view
All features
ANY
UI_COLLECTION
All features
deferred class UI_COLLECTION [UI_ ->
UI_ITEM
]
Summary
top
Direct parents
Inherit list:
ITERABLE
Insert list:
UI_ITEM
Known children
Insert list:
UI_APPLICATION
,
UI_MENU
,
UI_PANEL
Class invariant
top
children
/= Void
has_id:
id /= Void
constant_id:
id = id_memory
interned_id:
id.intern = id
Overview
top
Features
{
ANY
}
connect_to
(a_job:
UI_JOB
):
UI_CONNECT_ITEM
{
ANY
}
count
:
INTEGER_32
Number of available items in the hoard.
is_empty
:
BOOLEAN
Is the hoard empty ?
See also
count
.
new_iterator
: ITERATOR[UI_]
item
(a_id:
ABSTRACT_STRING
): UI_
add
(a_ui: UI_)
has
(a_ui: UI_):
BOOLEAN
has_id
(a_id:
ABSTRACT_STRING
):
BOOLEAN
remove
(a_ui: UI_)
{
UI_COLLECTION
}
children
: DICTIONARY[UI_,
FIXED_STRING
]
{}
connect_children
(a_connect:
UI_CONNECT_ITEM
, a_connect_children:
FAST_ARRAY
[
UI_CONNECT_ITEM
])
{}
_inline_agent24
(a_child: UI_, a_children:
FAST_ARRAY
[
UI_CONNECT_ITEM
])
Other features:
{
ANY
}
get_new_iterator
: ITERATOR[E_]
Agent-based features:
{
ANY
}
for_each
(action:
PROCEDURE
[
TUPLE
[TUPLE 1[E_]]])
Apply
action
to every item of
Current
.
for_all
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
Do all items satisfy
test
?
exists
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
Does at least one item satisfy
test
?
aggregate
(action:
FUNCTION
[
TUPLE
[TUPLE 2[E_, E_], E_]], initial: E_): E_
Aggregate all the elements starting from the initial value.
Printing:
{
ANY
}
out_in_tagged_out_memory
Append terse printable representation of current object in
tagged_out_memory
.
{
ANY
}
generation
:
INTEGER_32
{}
next_generation
Agent-based features:
{
ANY
}
do_all
(action:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]])
Apply
action
to every item of
Current
.
{}
_inline_agent1
(a:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]], e: E_)
{
ANY
}
id
:
FIXED_STRING
{}
connect_bridge
(a_job:
UI_JOB
):
UI_CONNECT_ITEM
id_memory
:
FIXED_STRING
id_memory_
:
FIXED_STRING
registered
:
FAST_ARRAY
[
WEAK_REFERENCE
[
UI_CONNECT_ITEM
]]
{}
_inline_agent25
(item:
WEAK_REFERENCE
[
UI_CONNECT_ITEM
], new:
UI_CONNECT_ITEM
):
BOOLEAN
connect_to
(a_job:
UI_JOB
):
UI_CONNECT_ITEM
effective function
{
ANY
}
top
require
a_job /= Void
count
:
INTEGER_32
effective function
{
ANY
}
top
Number of available items in the hoard.
See also
is_empty
ensure
Result >= 0
is_empty
:
BOOLEAN
effective function
{
ANY
}
top
Is the hoard empty ?
See also
count
.
ensure
definition:
Result = count = 0
new_iterator
: ITERATOR[UI_]
effective function
{
ANY
}
top
ensure
Result /= Void
Result.generation = generation
item
(a_id:
ABSTRACT_STRING
): UI_
effective function
{
ANY
}
top
require
a_id /= Void
has_id
(a_id)
add
(a_ui: UI_)
effective procedure
{
ANY
}
top
require
a_ui /= Void
not
has
(a_ui)
not
has_id
(a_ui.id)
ensure
has
(a_ui)
has
(a_ui: UI_):
BOOLEAN
effective function
{
ANY
}
top
require
a_ui /= Void
ensure
Result implies
item
(a_ui.id) = a_ui
has_id
(a_id:
ABSTRACT_STRING
):
BOOLEAN
effective function
{
ANY
}
top
require
a_id /= Void
remove
(a_ui: UI_)
effective procedure
{
ANY
}
top
require
a_ui /= Void
ensure
not
has
(a_ui)
children
: DICTIONARY[UI_,
FIXED_STRING
]
writable attribute
{
UI_COLLECTION
}
top
connect_children
(a_connect:
UI_CONNECT_ITEM
, a_connect_children:
FAST_ARRAY
[
UI_CONNECT_ITEM
])
deferred procedure
{}
top
_inline_agent24
(a_child: UI_, a_children:
FAST_ARRAY
[
UI_CONNECT_ITEM
])
frozen
effective procedure
{}
top
get_new_iterator
: ITERATOR[E_]
frozen
effective function
{
ANY
}
top
This feature is obsolete:
Use `new_iterator' instead. This historical SmartEiffel feature is badly named.
for_each
(action:
PROCEDURE
[
TUPLE
[TUPLE 1[E_]]])
effective procedure
{
ANY
}
top
Apply
action
to every item of
Current
.
See also
for_all
,
exists
,
aggregate
.
require
action /= Void
for_all
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
effective function
{
ANY
}
top
Do all items satisfy
test
?
See also
for_each
,
exists
,
aggregate
.
require
test /= Void
exists
(test:
FUNCTION
[
TUPLE
[TUPLE 1[E_]]]):
BOOLEAN
effective function
{
ANY
}
top
Does at least one item satisfy
test
?
See also
for_each
,
for_all
,
aggregate
.
require
test /= Void
aggregate
(action:
FUNCTION
[
TUPLE
[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
{
ANY
}
top
Aggregate all the elements starting from the initial value.
See also
for_each
,
for_all
,
exists
.
require
action /= Void
out_in_tagged_out_memory
effective procedure
{
ANY
}
top
Append terse printable representation of current object in
tagged_out_memory
.
require
locked:
tagged_out_locked
ensure
still_locked:
tagged_out_locked
not_cleared:
tagged_out_memory.count >= old tagged_out_memory.count
append_only:
old tagged_out_memory.twin.is_equal(tagged_out_memory.substring(1, old tagged_out_memory.count))
generation
:
INTEGER_32
writable attribute
{
ANY
}
top
next_generation
effective procedure
{}
top
ensure
generation
> old
generation
do_all
(action:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]])
frozen
effective procedure
{
ANY
}
top
Apply
action
to every item of
Current
.
This feature is obsolete:
Use `for_each` instead. This feature is not secure because it accepts a FUNCTION, the result of which is lost.
_inline_agent1
(a:
ROUTINE
[
TUPLE
[TUPLE 1[E_]]], e: E_)
frozen
effective procedure
{}
top
id
:
FIXED_STRING
writable attribute
{
ANY
}
top
connect_bridge
(a_job:
UI_JOB
):
UI_CONNECT_ITEM
deferred function
{}
top
require
a_job /= Void
id_memory
:
FIXED_STRING
effective function
{}
top
id_memory_
:
FIXED_STRING
writable attribute
{}
top
registered
:
FAST_ARRAY
[
WEAK_REFERENCE
[
UI_CONNECT_ITEM
]]
writable attribute
{}
top
_inline_agent25
(item:
WEAK_REFERENCE
[
UI_CONNECT_ITEM
], new:
UI_CONNECT_ITEM
):
BOOLEAN
frozen
effective function
{}
top