![]() |
YAP 7.1.0
|
Symbols and associated propeeties. More...
Symbols and associated propeeties.
Prolog interns symbols, called atoms in a Hash table, usually called the atom table_ Each entry in this table stores the atom's name, but also may have a linked list of properties We use properties to represent all kinds of data including data-base tecords, predicates operators, and more
In a nutshell:
class YAPAtom |
Atom A YAP data-base is a collection of atoms, where each atom has a name and a set of Properties.
Examples of properties include functors, predicates, operators, modules, almost everything
Public Member Functions | |
YAPAtom (const char *s) | |
construct new YAPAtom from UTF-8 string More... | |
YAPAtom (const wchar_t *s) | |
construct new YAPAtom from UTF-8 string More... | |
YAPAtom (const char *s, size_t len) | |
construct new YAPAtom from wide string More... | |
const char * | getName (void) |
get name of atom More... | |
const char * | text (void) |
get name of (other way) More... | |
Prop | getProp (PropTag tag) |
get prop of type More... | |
Atom | asAtom () |
as Atom More... | |
Friends | |
class | YAPEngine |
class | YAPModuleProp |
class | YAPPredicate |
class | YAPFunctor |
class | YAPAtomTerm |
class | YAProp |
class | YAPModule |
class | YAPQuery |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
class YAPProp |
Prop A YAP Propery is ameta-class for everything one can in a atom.
Examples of properties include functors, predicates, operators, modules, almost everything
Public Member Functions | |
virtual | ~YAPProp () |
get name of property virtual YAPAtom name(); More... | |
Friends | |
class | YAPModuleProp |
class | YAPFunctor |
|
inlinevirtual |
|
friend |
|
friend |
class YAPFunctor |
YAPFunctor represents Prolog functors Name/Arity.
Public Member Functions | |
YAPFunctor (YAPAtom at, uintptr_t arity) | |
Constructor: receives name as an atom, plus arity. More... | |
YAPFunctor (const char *s, uintptr_t arity, bool isutf8=true) | |
Constructor: receives name as a string plus arity. More... | |
YAPFunctor (const wchar_t *s, uintptr_t arity) | |
Constructor: receives name as a wide string plus arity. More... | |
YAPAtom | name () |
Getter: extract name of functor as an atom. More... | |
arity_t | arity () |
Getter: extract arity of functor as an unsigned integer. More... | |
Functor | fun () |
Getter: extract the C functor. More... | |
![]() | |
virtual | ~YAPProp () |
get name of property virtual YAPAtom name(); More... | |
Friends | |
class | YAPApplTerm |
class | YAPTerm |
class | YAPPredicate |
class | YAPQuery |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |
enum PropTag |
Enumerations | |
enum | PropTag { PRED_TAG = PEProp , DB_TAG = DBProperty , FUNCTOR_TAG = FunctorProperty , ARITHMETIC_PROPERTY_TAG = ExpProperty , TRANSLATION_TAG = TranslationProperty , HOLD_TAG = HoldProperty , MUTEX_TAG = MutexProperty , ARRAY_TAG = ArrayProperty , MODULE_TAG = ModProperty , BLACKBOARD_TAG = BBProperty , VALUE_TAG = ValProperty , GLOBAL_VAR_TAG = GlobalProperty , BLOB_TAG = BlobProperty , OPERATOR_TAG = OpProperty } |