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