Go to the documentation of this file.
27 #ifndef AlpsKnowledge_h_
28 #define AlpsKnowledge_h_
45 inline bool operator()(
const char* s1,
const char* s2)
const {
46 return strcmp(s1, s2) < 0;
const AlpsKnowledgeBroker * broker() const
Get pointer to the knowledge broker.
AlpsKnowledgeBroker * broker_
virtual AlpsKnowledge * decode(AlpsEncoded &encoded) const =0
Decode the given AlpsEncoded object into a new AlpsKnowledge object and return a pointer to it.
AlpsKnowledge & operator=(AlpsKnowledge const &)
Disable copy assignment operator.
AlpsKnowledgeType getType() const
Get knowledge type.
@ AlpsKnowledgeTypeUndefined
AlpsKnowledgeType
Type of knowledge like solution, node, cut...
void setBroker(AlpsKnowledgeBroker *broker)
Set knowledge broker.
void setType(AlpsKnowledgeType t)
Set knowledge type.
bool operator()(const char *s1, const char *s2) const
AlpsKnowledgeBroker * broker()
Get pointer to the knowledge broker.
The abstract base class of Alps knowledges generated during the search.
The base class of knowledge broker class.
AlpsEncoded * encode() const
Encode the content of this into an AlpsEncoded object and return a pointer to it.
AlpsKnowledge(AlpsKnowledgeType type)
AlpsKnowledge()
Default constructor.
A function object to perform lexicographic lexicographic comparison between two C style strings.
virtual ~AlpsKnowledge()
Destructor.
virtual AlpsReturnStatus decodeToSelf(AlpsEncoded &encoded)
Decode the given AlpsEncoded object into this.