Go to the documentation of this file.
27 #ifndef AlpsSolution_h_
28 #define AlpsSolution_h_
80 virtual void print(std::ostream& os)
const{
81 os <<
"WARNING: No solution print function is defined." << std::endl;
virtual ~AlpsSolution()
Destructor.
AlpsSolution & operator=(const AlpsSolution &)
AlpsNodeIndex_t getIndex()
Get index where solution was found.
virtual void print(std::ostream &os) const
Print out the solution.
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Decode the given AlpsEncoded object into this.
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
void setType(AlpsKnowledgeType t)
Set knowledge type.
The abstract base class of Alps knowledges generated during the search.
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
virtual AlpsReturnStatus encode(AlpsEncoded *encoded) const
Encode this into the given AlpsEncoded object.
void setDepth(const int d)
Set depth where solution was found.
void setIndex(const AlpsNodeIndex_t i)
Set index where solution was found.
int index_
The index of the node where the solution was found.
int getDepth()
Get depth where solution was found.
AlpsSolution(const AlpsNodeIndex_t i, const int d)
Constructor to set index and depth.
@ AlpsKnowledgeTypeSolution
int depth_
The depth of the node where the solution was found.
AlpsSolution()
Default constructor.