class COROUTINE_ITERATOR [O_ -> TUPLE, Y_]
Summary
Class invariant
Overview
Creation features
  • make (a_coroutine: COROUTINE[O_, Y_], a_arguments: O_)
Exported features
called by the plugin using CECIL
Agent-based features:
Invariant on generation` dynamics
  • fix_dumb_cecil
    Because there is a bug somewhere in SmartEiffel, ensures that the CECIL code is correctly generated.
start
effective procedure
Positions the iterator to the first object in the aggregate to be traversed.
is_off: BOOLEAN
writable attribute
Returns True when there are no more objects in the sequence.
item: Y_
writable attribute
Returns the object at the current position in the sequence.
next
effective procedure
Positions the iterator to the next object in the sequence.
generation: INTEGER_32
is 0
constant attribute
iterable_generation: INTEGER_32
is 0
constant attribute
context: POINTER
writable attribute
set_item (a_item: Y_)
effective procedure
yield
effective procedure
invoke
effective procedure
arguments: O_
writable attribute
coroutine: COROUTINE[O_, Y_]
writable attribute
make (a_coroutine: COROUTINE[O_, Y_], a_arguments: O_)
effective procedure
init
once procedure
initialize
do_start (a_iterator: COROUTINE_ITERATOR [O_ -> TUPLE, Y_], a_coroutine: COROUTINE[O_, Y_]): POINTER
do_continue (a_context: POINTER): BOOLEAN
do_yield (a_context: POINTER)
is_valid: BOOLEAN
frozen
effective function
for_each (action: PROCEDURE[TUPLE[TUPLE 1[E_]]])
effective procedure
Apply action to every item of Current.
for_all (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Do all items satisfy test?
exists (test: FUNCTION[TUPLE[TUPLE 1[E_]]]): BOOLEAN
effective function
Does at least one item satisfy test?
aggregate (action: FUNCTION[TUPLE[TUPLE 2[E_, E_], E_]], initial: E_): E_
effective function
Aggregate all the elements starting from the initial value.
generation_for_invariant: INTEGER_32
writable attribute
generation_only_grows: BOOLEAN
effective function
fix_dumb_cecil
effective procedure
Because there is a bug somewhere in SmartEiffel, ensures that the CECIL code is correctly generated.