QSDK 1.1 Documentation
Main Page | Modules | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members | Related Pages

Q::KnowledgeSlice Struct Reference
[Knowledge Base]

Clumped knowledge data. More...

#include <Q/q.h>

Inheritance diagram for Q::KnowledgeSlice:

Q::Object Q::ObjectBase List of all members.

Public Member Functions

 KnowledgeSlice ()
unsigned int nameCount () const
unsigned int factCount () const
Text name (unsigned int n) const
Utils::Result getFact (unsigned int n, unsigned int &ci, unsigned int &ri, unsigned int &vi, unsigned int &flags) const

Static Public Member Functions

ClassType classType ()
KnowledgeSlice cast (const ObjectBase &)

Detailed Description

Clumped knowledge data.

KnowledgeSlices cannot actually be created using this API. They are created as part of the mastering process of a Q file. They are included here in the API for examining the results of the mastering process.


Constructor & Destructor Documentation

Q::KnowledgeSlice::KnowledgeSlice  )  [inline]
 

Create a null slice reference.


Member Function Documentation

KnowledgeSlice Q::KnowledgeSlice::cast const ObjectBase  )  [static]
 

If the object referenced by obj is a slice, then return a KnowledgeSlice reference to it.

ClassType Q::KnowledgeSlice::classType  )  [static]
 

Return the class type.

unsigned int Q::KnowledgeSlice::factCount  )  const
 

Return the number of facts in the slice.

Utils::Result Q::KnowledgeSlice::getFact unsigned int  n,
unsigned int &  ci,
unsigned int &  ri,
unsigned int &  vi,
unsigned int &  flags
const
 

Extract the components of the fact at index n in the slice. The parameter ci is set to the index of the concept, ri is set to the index of the relation, vi is set to the index of the value and flags is set to non-zero if the fact is inverted (or to zero otherwise).

Text Q::KnowledgeSlice::name unsigned int  n  )  const
 

Return the name at index n in the slice.

unsigned int Q::KnowledgeSlice::nameCount  )  const
 

Return the number of names in the slice. these are the names of concepts.

Return to QSDK documentation Contents page. Contact details for support, information and fault-reporting.
Qube Software Limited © 2000-2004