Свойство | Тип | Описание | |
---|---|---|---|
DiscardData | bool |
Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
EnsureQUID ( ) : void | ||
NextSolution ( ) : bool |
Provide the next solution to the query. Prolog exceptions are mapped to C# exceptions. If the query is closed it will be opened. If the last solution was generated the query will be closed. If an exception is thrown while parsing (open) the query the _qid is set to zero. |
|
PlCall ( string goal ) : bool |
Call a goal once.
|
|
PlCall ( string predicate, PlTermV args ) : bool |
Create a PlQuery from the arguments, generates the first solution by NextSolution() and destroys the query. |
|
PlCall ( string module, string predicate, PlTermV args ) : bool |
As PlCall(string, PlTermV) but locating the predicate in the named module.
|
|
PlCallQuery ( string goal ) : PlTerm |
NOTE:will be changed in the near future. return the solution of a query which is called once by call Throw an ArgumentException if there is no or more than one variable in the goal
|
|
PlQuery ( string goal ) : System |
With this constructor a query is created from a string. Uppercase parameters are interpreted a variables but can't be nested in sub terms. If you need a variable in a nested term use PlQuery(string, PlTermV). See the examples for details. Muddy Waters sang:"I'am build for comfort, I ain't build for speed" |
|
PlQuery ( string name, PlTermV termV ) : System |
Create a query where name defines the name of the predicate and av the argument vector. The arity is deduced from av. The predicate is located in the Prolog module user.
|
|
PlQuery ( string module, string goal ) : System |
locating the predicate in the named module.
|
|
PlQuery ( string module, string name, PlTermV termV ) : System |
locating the predicate in the named module.
|
|
Query ( PlQuerySwitch queryType ) : int |
Obtain status information on the Prolog system. The actual argument type depends on the information required. The parameter queryType describes what information is wanted. Returning pointers and integers as a long is bad style. The signature of this function should be changed.
|
|
ToList ( ) : ReadOnlyCollection |
Create a ReadOnlyCollection<T> of PlQueryVariables. If calling ToList() all solutions of the query are generated and stored in the Collection.
|
Метод | Описание | |
---|---|---|
Dispose ( bool disposing ) : void |
Release all resources from the query
|
Метод | Описание | |
---|---|---|
CheckForException ( ) : void | ||
EraseRecords ( ) : void | ||
Free ( bool discardData ) : void |
Discards the query, but does not delete any of the data created by the query if discardData is false. It just invalidate qid, allowing for a new PlQuery object in this context. see |
|
PlQuery ( ) : System | ||
Sread ( |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | if true all is deleted |
Результат | void |
public static PlCall ( string goal ) : bool | ||
goal | string | The complete goal as a string |
Результат | bool |
public static PlCall ( string predicate, PlTermV args ) : bool | ||
predicate | string | defines the name of the predicate |
args | PlTermV | Is a |
Результат | bool |
public static PlCall ( string module, string predicate, PlTermV args ) : bool | ||
module | string | locating the predicate in the named module. |
predicate | string | |
args | PlTermV | |
Результат | bool |
public static PlCallQuery ( string goal ) : PlTerm | ||
goal | string | a goal with *one* variable |
Результат | PlTerm |
public PlQuery ( string goal ) : System | ||
goal | string | A string for a prolog query |
Результат | System |
public PlQuery ( string name, PlTermV termV ) : System | ||
name | string | the name of the predicate |
termV | PlTermV | the argument vector containing the parameters |
Результат | System |
public PlQuery ( string module, string goal ) : System | ||
module | string | locating the predicate in the named module. |
goal | string | |
Результат | System |
public PlQuery ( string module, string name, PlTermV termV ) : System | ||
module | string | locating the predicate in the named module. |
name | string | |
termV | PlTermV | |
Результат | System |
public static Query ( PlQuerySwitch queryType ) : int | ||
queryType | PlQuerySwitch | A |
Результат | int |