+
Point of view
All features
class ITERATOR_ON_AVL_SET [E_]
Summary
Class invariant
Overview
Creation features
  • make (a_set: ABSTRACT_AVL_SET[E_])
Features
  • start
    Positions the iterator to the first object in the aggregate to be traversed.
  • is_off: BOOLEAN
    Returns True when there are no more objects in the sequence.
  • item: E_
    Returns the object at the current position in the sequence.
  • next
    Positions the iterator to the next object in the sequence.
  • make (a_set: ABSTRACT_AVL_SET[E_])
  • set: ABSTRACT_AVL_SET[E_]
Check that the underlying traversable has not changed
Agent-based features:
Invariant on generation` dynamics
  • recycle
    Do whatever needs to be done to free resources or recycle other objects when recycling this one
start
effective procedure
Positions the iterator to the first object in the aggregate to be traversed.
is_off: BOOLEAN
effective function
Returns True when there are no more objects in the sequence.
item: E_
effective function
Returns the object at the current position in the sequence.
next
effective procedure
Positions the iterator to the next object in the sequence.
make (a_set: ABSTRACT_AVL_SET[E_])
effective procedure
set: ABSTRACT_AVL_SET[E_]
writable attribute
iterable_generation: INTEGER_32
effective function
is_valid: BOOLEAN
frozen
effective function
generation: INTEGER_32
deferred 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
nodes: STACK[AVL_TREE_NODE[E_]]
writable attribute
cur: AVL_TREE_NODE[E_]
writable attribute
go_leftmost (node: AVL_TREE_NODE[E_])
effective procedure
go_next_node (node: AVL_TREE_NODE[E_])
effective procedure
go_first (root: AVL_TREE_NODE[E_])
effective procedure
go_next
effective procedure
recycle
effective procedure
Do whatever needs to be done to free resources or recycle other objects when recycling this one
new_nodes: STACK[AVL_TREE_NODE[E_]]
effective function
nodes_pool: RECYCLING_POOL[STACK[AVL_TREE_NODE[E_]]]
effective function
nodes_pool_memory: RECYCLING_POOL[STACK[AVL_TREE_NODE[E_]]]
writable attribute