![]() |
TheAlgorithms/C++ 1.0.0
All the algorithms implemented in C++
|
Struct that handles all the information related to the current state. More...
Public Member Functions | |
Info ()=default | |
stores g score | |
Info (const Puzzle &A) | |
constructor having Puzzle as parameter | |
Info (const Puzzle &A, size_t h_value, size_t d) | |
constructor having three parameters | |
Info (const Info &A) | |
Copy constructor. | |
Info (const Info &&A) noexcept | |
Move constructor. | |
Info & | operator= (const Info &A) |
copy assignment operator | |
Info & | operator= (Info &&A) noexcept |
move assignment operator | |
~Info ()=default | |
Destructor for Info. | |
Public Attributes | |
std::shared_ptr< Puzzle > | state |
size_t | heuristic_value = 0 |
Holds the current state. | |
size_t | depth = 0 |
stores h score | |
Struct that handles all the information related to the current state.
Definition at line 293 of file a_star_search.cpp.
|
default |
stores g score
Default constructor
|
inlineexplicit |
constructor having Puzzle as parameter
A | a puzzle object |
Definition at line 307 of file a_star_search.cpp.
|
inline |
constructor having three parameters
A | a puzzle object |
h_value | heuristic value of this puzzle object |
depth | the depth at which this node was found during traversal |
Definition at line 315 of file a_star_search.cpp.
|
inline |
Copy constructor.
A | Info object reference |
Definition at line 324 of file a_star_search.cpp.
|
inlinenoexcept |
Move constructor.
A | Info object reference |
Definition at line 333 of file a_star_search.cpp.
|
inline |
copy assignment operator
A | Info object reference |
Definition at line 342 of file a_star_search.cpp.
|
inlinenoexcept |
size_t machine_learning::aystar_search::AyStarSearch< Puzzle >::Info::depth = 0 |
stores h score
Definition at line 296 of file a_star_search.cpp.
size_t machine_learning::aystar_search::AyStarSearch< Puzzle >::Info::heuristic_value = 0 |
Holds the current state.
Definition at line 295 of file a_star_search.cpp.
std::shared_ptr<Puzzle> machine_learning::aystar_search::AyStarSearch< Puzzle >::Info::state |
Definition at line 294 of file a_star_search.cpp.