|
QSDK 1.1 Documentation |
#include <Q/q.h>
Inheritance diagram for Q::Query:

Public Member Functions | |
| Query () | |
| bool | valid () const |
| void | reset () |
| void | next () |
| Concept | key () const |
| Concept | current () const |
| bool | light () const |
| void | removeCurrent () |
| bool | setCurrent (const Concept &value) |
| Concept | operator * () const |
| Query & | operator++ () |
Static Public Member Functions | |
| Query | create (const Concept &con, const Concept &relation) |
| Query | create (const Concept &con) |
| bool | affirm (const Concept &con, const Concept &rel, const Concept &value) |
| ClassType | classType () |
| Query | cast (const ObjectBase &obj) |
|
|
Create a null Query reference. |
|
||||||||||||||||
|
Concise form of Query that looks up a specific fact, exactly ( |
|
|
If the object referenced by |
|
|
Return the type of this class. |
|
|
Same as create( |
|
||||||||||||
|
Create a Query iterating the facts of |
|
|
The current value is the value term of a fact, ie. the last term. For example, when the iteration Query(bob) parks on (bob likes porridge), "porridge" is Query::current().
|
|
|
The key is the relation term of the fact, ie. the middle term. For example, when the iteration Query(bob) parks on (bob likes porridge), "likes" is Query::key().
|
|
|
|
|
|
Advance the iterator to the next result of the query or if the current result is the last result of the query, then set the state of the query to invalid. |
|
|
|
|
|
|
|
|
Delete the current fact, ie. (con relation value) from the knowledge database. |
|
|
Set the iterator to point at the first result. |
|
|
Concise way of removing the current fact, eg. (con relation oldVal) and adding (con relation |
|
|
Is the iteration still valid? Reimplemented from Q::ObjectBase. |
|
|
|
Qube Software Limited © 2000-2004
|
|