#include <AlpsSolution.h>
Inheritance diagram for AlpsSolution:


Public Member Functions | |
| AlpsSolution () | |
| Default constructor. | |
| AlpsSolution (const AlpsNodeIndex_t i, const int d) | |
| Constructor to set index and depth. | |
| virtual | ~AlpsSolution () |
| Destructor. | |
| AlpsNodeIndex_t | getIndex () |
| Get index where solution was found. | |
| void | setIndex (const AlpsNodeIndex_t i) |
| Set index where solution was found. | |
| int | getDepth () |
| Get depth where solution was found. | |
| void | setDepth (const int d) |
| Set depth where solution was found. | |
| virtual void | print (std::ostream &os) const |
| Print out the solution. | |
Private Member Functions | |
| AlpsSolution (const AlpsSolution &) | |
| Diable copy constructor and assignment. | |
| AlpsSolution & | operator= (const AlpsSolution &) |
Private Attributes | |
| int | index_ |
| The index of the node where the solution was found. | |
| int | depth_ |
| The depth of the node where the solution was found. | |
Definition at line 35 of file AlpsSolution.h.
| AlpsSolution::AlpsSolution | ( | const AlpsSolution & | ) | [private] |
Diable copy constructor and assignment.
| AlpsSolution::AlpsSolution | ( | ) | [inline] |
Default constructor.
Definition at line 51 of file AlpsSolution.h.
References AlpsKnowledgeTypeSolution, and AlpsKnowledge::setType().
| AlpsSolution::AlpsSolution | ( | const AlpsNodeIndex_t | i, | |
| const int | d | |||
| ) | [inline] |
Constructor to set index and depth.
Definition at line 59 of file AlpsSolution.h.
References AlpsKnowledgeTypeSolution, and AlpsKnowledge::setType().
| virtual AlpsSolution::~AlpsSolution | ( | ) | [inline, virtual] |
| AlpsSolution& AlpsSolution::operator= | ( | const AlpsSolution & | ) | [private] |
| AlpsNodeIndex_t AlpsSolution::getIndex | ( | ) | [inline] |
Get index where solution was found.
Definition at line 70 of file AlpsSolution.h.
References index_.
| void AlpsSolution::setIndex | ( | const AlpsNodeIndex_t | i | ) | [inline] |
Set index where solution was found.
Definition at line 73 of file AlpsSolution.h.
References index_.
| int AlpsSolution::getDepth | ( | ) | [inline] |
Get depth where solution was found.
Definition at line 76 of file AlpsSolution.h.
References depth_.
| void AlpsSolution::setDepth | ( | const int | d | ) | [inline] |
Set depth where solution was found.
Definition at line 79 of file AlpsSolution.h.
References depth_.
| virtual void AlpsSolution::print | ( | std::ostream & | os | ) | const [inline, virtual] |
Print out the solution.
Reimplemented in AbcSolution, and KnapSolution.
Definition at line 82 of file AlpsSolution.h.
int AlpsSolution::index_ [private] |
The index of the node where the solution was found.
Definition at line 43 of file AlpsSolution.h.
Referenced by getIndex(), and setIndex().
int AlpsSolution::depth_ [private] |
The depth of the node where the solution was found.
Definition at line 46 of file AlpsSolution.h.
Referenced by getDepth(), and setDepth().
1.4.7