PrologExpr * HashFind(char * functor, long value)
Finds the clause with the given functor and with the attribute specified in the database constructor having the given integer value.
For example,
// Hash on a combination of functor and integer "id" attribute when reading in PrologDatabase db(PrologInteger, "id"); // Read it in db.ReadProlog("data"); // Retrieve a clause with specified functor and id PrologExpr *clause = db.HashFind("node", 24);This would retrieve a clause which is written: node(id = 24, ..., ).
PrologExpr * HashFind(char * functor, char *value)
Finds the clause with the given functor and with the attribute specified in the database constructor having the given string value.