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

Public Member Functions | |
| ConceptValue (int) | |
| ConceptValue (double) | |
| ConceptValue (float) | |
| ConceptValue (const char *) | |
You can use ConceptValue to build facts that store property values. For example, (sea fishcount 3), (bob health 99.2) or (bob slogan "ni!").
ConceptValues are still concepts, so the ConceptValue class contains only constructors. Use methods of Q::Concept to access the value as native datatypes.
An important difference between value concepts and standard concepts is that value concepts are not unique, whereas standard concepts are. This means that any "bob" Concept in the knowledge database is the same thing and any facts about bob or connected to bob are about the same bob. Each value concept is a separate instance. To this end, facts connecting to value concepts are not invertible. So although you can Q::Query(sea, fishcount) to get the ConceptValue 3, you can't Query(fishcount, 3) to find all things with 3 fish in them like a separate (pond fishcount 3).
|
|
Create a new value concept from an integer. |
|
|
Create a new value concept from a double. |
|
|
Create a new value concept from a float. |
|
|
Create a new value concept from a string. |
|
|
|
Qube Software Limited © 2000-2004
|
|