Alps
2.0.2
|
#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... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Encode this into the given AlpsEncoded object. More... | |
virtual AlpsReturnStatus | decodeToSelf (AlpsEncoded &encoded) |
Decode the given AlpsEncoded object into this. More... | |
AlpsEncoded * | encode () const |
Get encode defined in AlpsKnowledge. More... | |
virtual AlpsReturnStatus | encode (AlpsEncoded *encoded) const |
Get encode defined in AlpsKnowledge. More... | |
Public Member Functions inherited from AlpsKnowledge | |
AlpsKnowledge () | |
Default constructor. More... | |
AlpsKnowledge (AlpsKnowledgeType type) | |
AlpsKnowledge (AlpsKnowledgeType type, AlpsKnowledgeBroker *broker) | |
virtual | ~AlpsKnowledge () |
Destructor. More... | |
AlpsKnowledgeType | getType () const |
Get knowledge type. More... | |
void | setType (AlpsKnowledgeType t) |
Set knowledge type. More... | |
AlpsKnowledgeBroker * | broker () |
Get pointer to the knowledge broker. More... | |
const AlpsKnowledgeBroker * | broker () const |
Get pointer to the knowledge broker. More... | |
void | setBroker (AlpsKnowledgeBroker *broker) |
Set knowledge broker. More... | |
AlpsEncoded * | encode () const |
Encode the content of this into an AlpsEncoded object and return a pointer to it. More... | |
virtual AlpsKnowledge * | decode (AlpsEncoded &encoded) const =0 |
Decode the given AlpsEncoded object into a new AlpsKnowledge object and return a pointer to it. More... | |
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 | |
Public Attributes inherited from AlpsKnowledge | |
AlpsKnowledgeBroker * | broker_ |
Definition at line 39 of file AlpsSolution.h.
|
private |
Diable copy constructor and assignment.
|
inline |
Default constructor.
Definition at line 55 of file AlpsSolution.h.
|
inline |
Constructor to set index and depth.
Definition at line 60 of file AlpsSolution.h.
|
inlinevirtual |
Destructor.
Definition at line 65 of file AlpsSolution.h.
|
private |
|
inline |
Get index where solution was found.
Definition at line 68 of file AlpsSolution.h.
|
inline |
Set index where solution was found.
Definition at line 71 of file AlpsSolution.h.
|
inline |
Get depth where solution was found.
Definition at line 74 of file AlpsSolution.h.
|
inline |
Set depth where solution was found.
Definition at line 77 of file AlpsSolution.h.
|
inlinevirtual |
Print out the solution.
Reimplemented in AbcSolution, AbcSolution, AbcSolution, and KnapSolution.
Definition at line 80 of file AlpsSolution.h.
|
inlinevirtual |
Encode this into the given AlpsEncoded object.
Reimplemented from AlpsKnowledge.
Reimplemented in AbcSolution, AbcSolution, AbcSolution, and KnapSolution.
Definition at line 88 of file AlpsSolution.h.
|
inlinevirtual |
Decode the given AlpsEncoded object into this.
Reimplemented from AlpsKnowledge.
Reimplemented in AbcSolution, AbcSolution, AbcSolution, and KnapSolution.
Definition at line 95 of file AlpsSolution.h.
AlpsEncoded* AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
virtual AlpsReturnStatus AlpsKnowledge::encode |
Get encode defined in AlpsKnowledge.
|
private |
The index of the node where the solution was found.
Definition at line 47 of file AlpsSolution.h.
|
private |
The depth of the node where the solution was found.
Definition at line 50 of file AlpsSolution.h.