|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
Struct that handles all the information related to the current state. More...
Public Member Functions | |
| Info ()=default | |
| stores g score More... | |
| Info (const Puzzle &A) | |
| constructor having Puzzle as parameter More... | |
| Info (const Puzzle &A, size_t h_value, size_t d) | |
| constructor having three parameters More... | |
| Info (const Info &A) | |
| Copy constructor. More... | |
| Info (const Info &&A) noexcept | |
| Move constructor. More... | |
| Info & | operator= (const Info &A) |
| copy assignment operator More... | |
| Info & | operator= (Info &&A) noexcept |
| move assignment operator More... | |
| ~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.
|
default |
stores g score
Default constructor
|
inlineexplicit |
constructor having Puzzle as parameter
| A | a puzzle object |
|
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 |
|
inline |
Copy constructor.
| A | Info object reference |
|
inlinenoexcept |
|
inline |
copy assignment operator
| A | Info object reference |
|
inlinenoexcept |