Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::SearchSolution< State, Move > Struct Template Reference

Snapshot of a concrete solution encountered during the traversal. More...

#include <state_search_common.H>

Inheritance diagram for Aleph::SearchSolution< State, Move >:
[legend]
Collaboration diagram for Aleph::SearchSolution< State, Move >:
[legend]

Public Attributes

State state
 Snapshot of the terminal state.
 
SearchPath< Move > path
 Move sequence leading to state.
 
size_t depth = 0
 Path depth of the solution.
 

Detailed Description

template<SearchState State, SearchMove Move>
struct Aleph::SearchSolution< State, Move >

Snapshot of a concrete solution encountered during the traversal.

The engine copies the terminal state and the move path that produced it, allowing users to inspect or replay the result after the mutable search state has been restored by undo().

Template Parameters
StateMutable state type.
MoveMove type.

Definition at line 326 of file state_search_common.H.

Member Data Documentation

◆ depth

template<SearchState State, SearchMove Move>
size_t Aleph::SearchSolution< State, Move >::depth = 0

Path depth of the solution.

Definition at line 330 of file state_search_common.H.

Referenced by Aleph::Branch_And_Bound< Domain, ObjectivePolicy >::handle_complete_solution().

◆ path

template<SearchState State, SearchMove Move>
SearchPath<Move> Aleph::SearchSolution< State, Move >::path

Move sequence leading to state.

Definition at line 329 of file state_search_common.H.

Referenced by Aleph::Branch_And_Bound< Domain, ObjectivePolicy >::handle_complete_solution().

◆ state

template<SearchState State, SearchMove Move>
State Aleph::SearchSolution< State, Move >::state

Snapshot of the terminal state.

Definition at line 328 of file state_search_common.H.

Referenced by Aleph::Branch_And_Bound< Domain, ObjectivePolicy >::handle_complete_solution().


The documentation for this struct was generated from the following file: