#include <stdio.h>
#include "libdb.h"
#include "libicl_private.h"
Go to the source code of this file.
Defines | |
| #define | EXPORT_BORLAND |
| #define | EXPORT_MSCPP |
| #define | DB_MAGIC_COOKIE 123456 |
Functions | |
| int | OAA_hash_function (char *str) |
| Hash function: simple sum of characters modulo hash table size. | |
| int | db_IsValid (ICLDatabase *db) |
| Returns TRUE if Database has been properly initialized. | |
| EXPORT_MSCPP ICLDatabase *EXPORT_BORLAND | db_NewDB () |
| Returns a pointer to a new database structure. | |
| EXPORT_MSCPP int EXPORT_BORLAND | db_FreeDB (ICLDatabase *db) |
| Frees all space used by a database. | |
| EXPORT_MSCPP int EXPORT_BORLAND | db_Assert (ICLDatabase *db, ICLTerm *term, ICLTerm *params) |
| Adds a copy of an ICL term to the database. | |
| EXPORT_MSCPP int EXPORT_BORLAND | db_Retract (ICLDatabase *db, ICLTerm *term, ICLTerm *params) |
| Removes an ICL term from the database. | |
| EXPORT_MSCPP int EXPORT_BORLAND | db_Solve (ICLDatabase *db, ICLTerm *term, ICLTerm *params, ICLTerm **answers) |
| Searches the database for matches to term. | |
| EXPORT_MSCPP int EXPORT_BORLAND | db_PrintDB (ICLDatabase *db) |
| Writes out the entire database. | |
Definition in file libdb.c.
| EXPORT_MSCPP int EXPORT_BORLAND db_Assert | ( | ICLDatabase * | db, | |
| ICLTerm * | term, | |||
| ICLTerm * | params | |||
| ) |
| EXPORT_MSCPP int EXPORT_BORLAND db_FreeDB | ( | ICLDatabase * | db | ) |
| int db_IsValid | ( | ICLDatabase * | db | ) |
| EXPORT_MSCPP ICLDatabase* EXPORT_BORLAND db_NewDB | ( | ) |
| EXPORT_MSCPP int EXPORT_BORLAND db_PrintDB | ( | ICLDatabase * | db | ) |
| EXPORT_MSCPP int EXPORT_BORLAND db_Retract | ( | ICLDatabase * | db, | |
| ICLTerm * | term, | |||
| ICLTerm * | params | |||
| ) |
| EXPORT_MSCPP int EXPORT_BORLAND db_Solve | ( | ICLDatabase * | db, | |
| ICLTerm * | term, | |||
| ICLTerm * | params, | |||
| ICLTerm ** | answers | |||
| ) |
| int OAA_hash_function | ( | char * | str | ) |