![]() |
YAP 7.1.0
|
These classes offer term construction and access. More...
These classes offer term construction and access.
Terms are seens as objects that inherit from a virtual class, Currently, all terms must reside in the stack and may be moved around during garbage collection Term objects use an handle, in the SWI-Prolog style
Notice that terms are forcefully destroyed during backtracking
| class YAPTerm |
Public Member Functions | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Protected Attributes | |
| yhandle_t | hdl |
Friends | |
| class | YAPPredicate |
| class | YAPPrologPredicate |
| class | YAPQuery |
| class | YAPModule |
| class | YAPModuleProp |
| class | YAPApplTerm |
| class | YAPListTerm |
| class | YAPConjunctiveTerm |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
term is a list
extract the argument i of the term, where i in 1...arityvoid *Yap_RepStreamFromId(int sno)
Reimplemented in YAPApplTerm.
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
is a primitive term
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
type check for unound
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
type check for a string " ... "
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
type check for integer
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
is a pair term
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
type check for atom
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
term is ground
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
is a structured term
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
type check for floating-point
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inlinevirtual |
term hash,
Reimplemented in YAPApplTerm, YAPAtomTerm, and YAPVarTerm.
|
inline |
| Term & operator[] | ( | arity_t | n | ) |
|
inline |
| YAP_tag_t tag | ( | ) |
construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term
YAPTerm(YAPFunctor f, YAPTerm ts[]); extract the tag of a term, after dereferencing
|
inlinevirtual |
return a string with a textual representation of the term
Reimplemented in YAPAtomTerm.
|
inlinevirtual |
|
inlinevirtual |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
| class T |
Friends | |
| class | YAPTerm |
Additional Inherited Members | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
| class YAPApplTerm |
Compound Term.
A compound term, with functor and fixed number of arguments, also known as a function application
Notice that lists and big numbers do not belong to this class
Public Member Functions | |
| YAPApplTerm (Term t0) | |
| There are very many ways to build one of these terms: More... | |
| YAPApplTerm (Functor f, Term ts[]) | |
| YAPApplTerm (YAPFunctor f, YAPTerm ts[]) | |
| YAPApplTerm (const std::string s, std::vector< Term > ts) | |
| not really needed, but we may not want to look inside the vector More... | |
| YAPApplTerm (const std::string s, std::vector< YAPTerm > ts) | |
| YAPApplTerm (const std::string s, Term a1) | |
| YAPApplTerm (const std::string s, Term a1, Term a2) | |
| YAPApplTerm (const std::string s, Term a1, Term a2, Term a3) | |
| YAPApplTerm (const std::string s, unsigned int arity) | |
| YAPApplTerm (YAPFunctor f) | |
| Functor | functor () |
| YAPFunctor | getFunctor () |
| Term | getArg (arity_t i) |
| term is a list More... | |
| void | putArg (int i, Term targ) |
| void | putArg (int i, YAPTerm t) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Friends | |
| class | YAPTerm |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
There are very many ways to build one of these terms:
|
inline |
| YAPApplTerm | ( | YAPFunctor | f, |
| YAPTerm | ts[] | ||
| ) |
| YAPApplTerm | ( | const std::string | s, |
| std::vector< Term > | ts | ||
| ) |
| YAPApplTerm | ( | const std::string | s, |
| std::vector< YAPTerm > | ts | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
| YAPApplTerm | ( | YAPFunctor | f | ) |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
| class YAPPairTerm |
Public Member Functions | |
| YAPPairTerm (Term t0) | |
| YAPPairTerm (YAPTerm hd, YAPTerm tl) | |
| Term | getHead () |
| Term | getTail () |
| YAPTerm | car () |
| bool | nil () |
| YAPPairTerm | cdr () |
| std::vector< Term > | listToArray () |
| std::vector< YAPTerm > | listToVector () |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Friends | |
| class | YAPTerm |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
| YAPPairTerm | ( | YAPTerm | hd, |
| YAPTerm | tl | ||
| ) |
| YAPPairTerm | ( | ) |
|
inline |
| class YAPNumberTerm |
Public Member Functions | |
| bool | isTagged () |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
| class YAPIntegerTerm |
Public Member Functions | |
| YAPIntegerTerm (intptr_t i) | |
| intptr_t | getInteger () |
Public Member Functions inherited from YAPNumberTerm | |
| bool | isTagged () |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
| YAPIntegerTerm | ( | intptr_t | i | ) |
| class YAPFloatTerm |
Public Member Functions | |
| YAPFloatTerm (double dbl) | |
| double | getFl () |
Public Member Functions inherited from YAPNumberTerm | |
| bool | isTagged () |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
| class YAPListTerm |
Public Member Functions | |
| YAPListTerm () | |
| YAPListTerm (Term t0) | |
| Create an empty list term. More... | |
| YAPListTerm (Term ts[], size_t n) | |
| Create a list term out of an array of terms. More... | |
| YAPListTerm (std::vector< Term >) | |
| size_t | length () |
| Return the number of elements in a list term. More... | |
| Term & | operator[] (size_t n) |
| Extract the nth element. More... | |
| Term | car () |
| Extract the first element of a list. More... | |
| Term | cdr () |
| Extract the tail elements of a list. More... | |
| Term | dup () |
| copy a list More... | |
| bool | nil () |
| Check if the list is empty. More... | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
|
inline |
| YAPListTerm | ( | Term | ts[], |
| size_t | n | ||
| ) |
| YAPListTerm | ( | std::vector< Term > | ts | ) |
| Term car | ( | ) |
| Term cdr | ( | ) |
|
inline |
|
inline |
| class YAPConjunctiveTerm |
Public Member Functions | |
| YAPConjunctiveTerm () | |
| YAPConjunctiveTerm (Term t0) | |
| Create an empty list term. More... | |
| YAPConjunctiveTerm (const Term ts[], size_t n) | |
| Create a list term out of an array of terms. More... | |
| YAPConjunctiveTerm (std::vector< Term >) | |
| size_t | length () |
| Return the number of elements in a list term. More... | |
| Term & | operator[] (size_t n) |
| Extract the nth element. More... | |
| Term | car () |
| Extract the first element of a listconjunction. More... | |
| Term | cdr () |
| Extract the tail elements of a conjunction. More... | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
|
inline |
| YAPConjunctiveTerm | ( | const Term | ts[], |
| size_t | n | ||
| ) |
| YAPConjunctiveTerm | ( | std::vector< Term > | ts | ) |
| Term car | ( | ) |
| Term cdr | ( | ) |
|
inline |
| class YAPStringTerm |
Public Member Functions | |
| YAPStringTerm (char *s) | |
| your standard constructor More... | |
| YAPStringTerm (char *s, size_t len) | |
| use this one to construct length limited strings More... | |
| YAPStringTerm (wchar_t *s) | |
| construct using wide chars More... | |
| YAPStringTerm (wchar_t *s, size_t len) | |
| construct using length-limited wide chars More... | |
| const char * | getString () |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
| YAPStringTerm | ( | char * | s | ) |
| YAPStringTerm | ( | char * | s, |
| size_t | len | ||
| ) |
| YAPStringTerm | ( | wchar_t * | s | ) |
| YAPStringTerm | ( | wchar_t * | s, |
| size_t | len | ||
| ) |
| class YAPAtomTerm |
Public Member Functions | |
| YAPAtomTerm (Atom a) | |
| YAPAtomTerm (YAPAtom a) | |
| YAPAtomTerm (char s[]) | |
| YAPAtomTerm (char *s, size_t len) | |
| YAPAtomTerm (wchar_t *s) | |
| YAPAtomTerm (wchar_t *s, size_t len) | |
| bool | isVar () |
| term hash, More... | |
| bool | isAtom () |
| type check for unbound More... | |
| bool | isInteger () |
| type check for atom More... | |
| bool | isFloat () |
| type check for integer More... | |
| bool | isString () |
| type check for floating-point More... | |
| bool | isCompound () |
| type check for a string " ... " More... | |
| bool | isAppl () |
| is a primitive term More... | |
| bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| YAPAtom | getAtom () |
| [] is a list More... | |
| const char * | text () |
| return a string with a textual representation of the term More... | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Friends | |
| class | YAPModule |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
|
inline |
| YAPAtomTerm | ( | char | s[] | ) |
| YAPAtomTerm | ( | char * | s, |
| size_t | len | ||
| ) |
| YAPAtomTerm | ( | wchar_t * | s | ) |
| YAPAtomTerm | ( | wchar_t * | s, |
| size_t | len | ||
| ) |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
| class YAPVarTerm |
Public Member Functions | |
| YAPVarTerm () | |
| constructor More... | |
| CELL * | getVar () |
| get the internal representation More... | |
| YAPVarTerm (Term t) | |
| is the variable bound to another one More... | |
| bool | unbound () |
| type check for unbound More... | |
| bool | isVar () |
| term hash, More... | |
| bool | isAtom () |
| type check for unound More... | |
| bool | isInteger () |
| type check for atom More... | |
| bool | isFloat () |
| type check for integer More... | |
| bool | isString () |
| type check for floating-point More... | |
| bool | isCompound () |
| type check for a string " ... " More... | |
| bool | isAppl () |
| is a primitive term More... | |
| bool | isPair () |
| is a structured term More... | |
| bool | isGround () |
| is a pair term More... | |
| bool | isList () |
| term is ground More... | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Friends | |
| class | YAPTerm |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
| class YAPErrorTerm |
Public Member Functions | |
| YAPErrorTerm (yap_error_descriptor_t *err) | |
Public Member Functions inherited from YAPTerm | |
| Term | gt () |
| handle to term, equivalent to term_t More... | |
| Term | pop_t () |
| get the Prolog term corresponding to the YAPTerm, and try to recover More... | |
| void | mk (Term t0) |
| create a new YAPTerm from a term More... | |
| void | put (Term t0) |
| copy a term to an YAPTerm More... | |
| YAPTerm (Term tn) | |
| create an empty YAPTerm More... | |
| YAPTerm () | |
| private method to convert from Term (internal YAP representation) to YAPTerm More... | |
| YAPTerm (void *ptr) | |
| pointer to term More... | |
| YAPTerm (char *s) | |
| parse string s and construct a term More... | |
| virtual | ~YAPTerm () |
| Term destructor, tries to recover slot. More... | |
| YAP_tag_t | tag () |
| construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(long int num) { mk(MkIntegerTerm(num)); } construct a term out of an integer (if you know object type use YAPIntegerTerm) YAPTerm(double num) { mk(MkFloatTerm(num)); } parse string s and construct a term More... | |
| Term | deepCopy () |
| copy the term ( term copy ) More... | |
| int | numberVars (int start, bool singletons=false) |
| numbervars ( int start, bool process=false ) More... | |
| Term | term () |
| YAPTerm | arg (int i) |
| from YAPTerm to Term (internal YAP representation) More... | |
| void | bind (Term b) |
| void | bind (YAPTerm *b) |
| Term & | operator[] (arity_t n) |
| from YAPTerm to Term (internal YAP representation) fetch a sub-term More... | |
| virtual bool | exactlyEqual (YAPTerm t1) |
| this term is == to t1 More... | |
| virtual bool | unify (YAPTerm t1) |
| t = t1 More... | |
| virtual bool | unifiable (YAPTerm t1) |
| we can unify t and t1 More... | |
| virtual YAP_Term | variant (YAPTerm t1) |
| t == t1, the two terms are equal up to variable renamingvirtual bool variant( More... | |
| virtual intptr_t | hashTerm (size_t sz, size_t depth, bool variant) |
| virtual bool | isVar () |
| term hash, More... | |
| virtual bool | isAtom () |
| type check for unound More... | |
| virtual bool | isInteger () |
| type check for atom More... | |
| virtual bool | isFloat () |
| type check for integer More... | |
| virtual bool | isString () |
| type check for floating-point More... | |
| virtual bool | isCompound () |
| type check for a string " ... " More... | |
| virtual bool | isAppl () |
| is a primitive term More... | |
| virtual bool | isPair () |
| is a structured term More... | |
| virtual bool | isGround () |
| is a pair term More... | |
| virtual bool | isList () |
| term is ground More... | |
| virtual Term | getArg (arity_t i) |
| term is a list More... | |
| virtual arity_t | arity () |
| extract the arity of the term variables have arity 0 More... | |
| virtual const char * | text () |
| return a string with a textual representation of the term More... | |
| yhandle_t | handle () |
| return a handle to the term More... | |
| bool | initialized () |
| whether the term actually refers to a live object More... | |
Friends | |
| class | YAPTerm |
Additional Inherited Members | |
Protected Attributes inherited from YAPTerm | |
| yhandle_t | hdl |
|
inline |
|
inline |
| X_API Term MkErrorTerm | ( | yap_error_descriptor_t * | t | ) |
| X_API Term YAP_MkCharPTerm | ( | char * | n | ) |
Definition at line 313 of file c_interface.c.
Macros | |
| #define | YAPT_HH 1 |
Functions | |
| X_API Term | YAP_MkCharPTerm (char *n) |
| X_API Term | MkErrorTerm (yap_error_descriptor_t *) |