PrologDatabase::FindClause

Various ways of retrieving clauses from the database. A return value of NULL indicates no (more) clauses matching the given criteria. Calling the functions repeatedly retrieves more matching clauses, if any.

PrologExpr * FindClause(long id)

Find a clause based on the special "id'' attribute.

PrologExpr * FindClause(char *attribute, char *value)

Find a clause which has the given attribute set to the given string or word value.

PrologExpr * FindClause(char *attribute, long value)

Find a clause which has the given attribute set to the given integer value.

PrologExpr * FindClause(char *attribute, float value)

Find a clause which has the given attribute set to the given floating point value.