
Public Member Functions | |
| SWIProlog (int argc, char **argv) | |
| init the prolog engine | |
| ~SWIProlog () | |
| Destructor. | |
| bool | consult (const char *filename) |
| Consult a KB file (assume a .pl extention). | |
| bool | query (const char *predicate, std::vector< std::string > &args) |
Definition at line 49 of file SWIProlog.H.
| SWIProlog::SWIProlog | ( | int | argc, | |
| char ** | argv | |||
| ) |
init the prolog engine
Definition at line 50 of file SWIProlog.C.
| SWIProlog::~SWIProlog | ( | ) |
Destructor.
Definition at line 74 of file SWIProlog.C.
| bool SWIProlog::consult | ( | const char * | filename | ) |
Consult a KB file (assume a .pl extention).
Definition at line 80 of file SWIProlog.C.
| bool SWIProlog::query | ( | const char * | predicate, | |
| std::vector< std::string > & | args | |||
| ) |
Query the predicate given args Note args might change to a value inferd by prolog, For variables, insert an empty string Return the first match and then cuts the tree
Definition at line 104 of file SWIProlog.C.
Referenced by SceneUnderstanding::highOrderRec().
1.6.3