deferred class ABSTRACT_BACKTRACKING_ALTERNATIVE

Features exported to ABSTRACT_BACKTRACKING_POOL

Abstract realisation of an alternative iterator for the ABSTRACT_BACKTRACKING

The ABSTRACT_BACKTRACKING uses the fields continuation and top_sequence to record its exploration state and calls the feature 'next_alternative' to let the current object choose how to continue the exploration.

Direct parents

conformant parents

ABSTRACT_BACKTRACKING_POOLABLE

Known children

conformant children

BACKTRACKING_ALTERNATIVE, BACKTRACKING_ALTERNATIVE_LIST

Summary

exported features

Details

previous: ABSTRACT_BACKTRACKING_ALTERNATIVE

For the linked stack of alternatives. Managed by ABSTRACT_BACKTRACKING.

release

Called by ABSTRACT_BACKTRACKING to release current instance to the pool.

require

  • pool /= Void

get_twin: ABSTRACT_BACKTRACKING_ALTERNATIVE

Return a twin of current from the pool

require

  • pool /= Void

ensure

  • Result.is_equal(Current)

deferred pool: ABSTRACT_BACKTRACKING_POOL[ABSTRACT_BACKTRACKING_ALTERNATIVE]

The pool that will record Current

set_pool_link (other: ABSTRACT_BACKTRACKING_POOLABLE)

Set 'pool_link' to 'other'

ensure

  • definition: pool_link = other