23 #ifndef AlpsKnowledge_h
24 #define AlpsKnowledge_h
40 inline bool operator()(
const char* s1,
const char* s2)
const {
41 return strcmp(s1, s2) < 0;
int KnowledgeType
Type of knowledge like solution, node, cut...
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 ...
void setEncoded(AlpsEncoded *e)
AlpsKnowledge & operator=(const AlpsKnowledge &)
This data structure is to contain the packed form of an encodable knowledge.
A function object to perform lexicographic lexicographic comparison between two C style strings...
bool operator()(const char *s1, const char *s2) const
The abstract base class of any user-defined class that Alps has to know about in order to encode/deco...
AlpsEncoded * getEncoded() const
Get/set encoded.
virtual AlpsReturnStatus encode(AlpsEncoded *encoded)
Pack into a encode object.
AlpsEncoded * encoded_
The encoded object in an encoded form (could be compressed!)
virtual AlpsEncoded * encode() const
This method should encode the content of the object and return a pointer to the encoded form...
void setType(KnowledgeType t)