#include <AlpsSolution.h>


Public Member Functions | |
| AlpsSolution () | |
| Default constructor. More... | |
| AlpsSolution (const AlpsNodeIndex_t i, const int d) | |
| Constructor to set index and depth. More... | |
| virtual | ~AlpsSolution () |
| Destructor. More... | |
| AlpsNodeIndex_t | getIndex () |
| Get index where solution was found. More... | |
| void | setIndex (const AlpsNodeIndex_t i) |
| Set index where solution was found. More... | |
| int | getDepth () |
| Get depth where solution was found. More... | |
| void | setDepth (const int d) |
| Set depth where solution was found. More... | |
| virtual void | print (std::ostream &os) const |
| Print out the solution. More... | |
Public Member Functions inherited from AlpsKnowledge | |
| AlpsKnowledge () | |
| virtual | ~AlpsKnowledge () |
| KnowledgeType | getType () |
| void | setType (KnowledgeType t) |
| virtual AlpsEncoded * | encode () const |
| This method should encode the content of the object and return a pointer to the encoded form. More... | |
| virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) |
| Pack into a encode object. More... | |
| virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const |
| This method should decode and return a pointer to a brand new object, i.e., the method must create a new object on the heap from the decoded data instead of filling up the object for which the method was invoked. More... | |
| AlpsEncoded * | getEncoded () const |
| Get/set encoded. More... | |
| void | setEncoded (AlpsEncoded *e) |
Private Member Functions | |
| AlpsSolution (const AlpsSolution &) | |
| Diable copy constructor and assignment. More... | |
| AlpsSolution & | operator= (const AlpsSolution &) |
Private Attributes | |
| int | index_ |
| The index of the node where the solution was found. More... | |
| int | depth_ |
| The depth of the node where the solution was found. More... | |
Additional Inherited Members | |
Protected Attributes inherited from AlpsKnowledge | |
| KnowledgeType | type_ |
Definition at line 35 of file AlpsSolution.h.
|
private |
Diable copy constructor and assignment.
|
inline |
Default constructor.
Definition at line 51 of file AlpsSolution.h.
|
inline |
Constructor to set index and depth.
Definition at line 59 of file AlpsSolution.h.
|
inlinevirtual |
Destructor.
Definition at line 67 of file AlpsSolution.h.
|
private |
|
inline |
Get index where solution was found.
Definition at line 70 of file AlpsSolution.h.
|
inline |
Set index where solution was found.
Definition at line 73 of file AlpsSolution.h.
|
inline |
Get depth where solution was found.
Definition at line 76 of file AlpsSolution.h.
|
inline |
Set depth where solution was found.
Definition at line 79 of file AlpsSolution.h.
|
inlinevirtual |
Print out the solution.
Reimplemented in BcpsSolution, AbcSolution, and KnapSolution.
Definition at line 82 of file AlpsSolution.h.
|
private |
The index of the node where the solution was found.
Definition at line 43 of file AlpsSolution.h.
|
private |
The depth of the node where the solution was found.
Definition at line 46 of file AlpsSolution.h.
1.8.5