+
Point of view
TYPED_INTERNALS
deferred class AVL_TREE [E_]
Summary
Class invariant
Overview
Exported features
Adding and removing:
Looking and searching:
Iterating internals:
  • build_map
  • map: FAST_ARRAY[AVL_TREE_NODE[E_]]
    Elements in a row for iteration.
  • map_dirty: BOOLEAN
    True when the map needs to be built again for the iterators.
debug_string: STRING
effective function
count: INTEGER_32
writable attribute
remove (e: E_)
effective procedure
fast_remove (e: E_)
effective procedure
root: AVL_TREE_NODE[E_]
writable attribute
rebalance: BOOLEAN
writable attribute
item_memory: E_
writable attribute
set_value_and_key (n: AVL_TREE_NODE[E_])
deferred procedure
set_value (n: AVL_TREE_NODE[E_])
deferred procedure
fast_do_insert (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
do_insert (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
left_grown (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
right_grown (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
fast_do_remove (n: AVL_TREE_NODE[E_], e: E_): AVL_TREE_NODE[E_]
effective function
do_remove (n: AVL_TREE_NODE[E_], e: E_): AVL_TREE_NODE[E_]
effective function
remove_right (n1: AVL_TREE_NODE[E_], n2: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
left_shrunk (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
right_shrunk (n: AVL_TREE_NODE[E_]): AVL_TREE_NODE[E_]
effective function
exchange_and_discard (n1: AVL_TREE_NODE[E_], n2: AVL_TREE_NODE[E_])
deferred procedure
clear_nodes (node: AVL_TREE_NODE[E_])
effective procedure
node_height (node: AVL_TREE_NODE[E_]): INTEGER_32
effective function
has (e: E_): BOOLEAN
effective function
Is element e in the set?
fast_has (e: E_): BOOLEAN
effective function
Is element e in the set?
build_map
effective procedure
map: FAST_ARRAY[AVL_TREE_NODE[E_]]
writable attribute
Elements in a row for iteration.
map_dirty: BOOLEAN
writable attribute
True when the map needs to be built again for the iterators.
new_node: AVL_TREE_NODE[E_]
effective function
a_new_node: AVL_TREE_NODE[E_]
deferred function
discard_node (n: AVL_TREE_NODE[E_])
effective procedure
lost_nodes: RECYCLING_POOL[AVL_TREE_NODE[E_]]
effective function
lost_nodes_memory: RECYCLING_POOL[AVL_TREE_NODE[E_]]
writable attribute
ordered (e1: E_, e2: E_): BOOLEAN
deferred function
True if [e1, e2] is a correctly ordered sequence; usually, e1 < e2
balanced: INTEGER_32
is 0
constant attribute
imbalanced_left: INTEGER_32
is -1
constant attribute
imbalanced_right: INTEGER_32
is 1
constant attribute