YAPFunctor

YAPFunctor represents Prolog functors Name/Arity.

Public Function:

1. YAPFunctor::YAPFunctor(YAPAtom at, uintptr_t arity): : Constructor: receives name as an atom, plus arity.

This is the default method, and the most popular

1. YAPFunctor::YAPFunctor(const char *s, uintptr_t arity, bool isutf8=true): : Constructor: receives name as a string plus arity.

Notice that this is designed for ISO-LATIN-1 right now Note: Python confuses the 3 constructors, use YAPFunctorFromString

1. YAPFunctor::YAPFunctor(const wchar_t *s, uintptr_t arity): : Constructor: receives name as a wide string plus arity.

Notice that this is designed for UNICODE right now

Note: Python confuses the 3 constructors, use YAPFunctorFromWideString

1. YAPAtom YAPFunctor::name(): : Getter: extract name of functor as an atom.

this is for external usage.

1. arity_t YAPFunctor::arity(): : Getter: extract arity of functor as an unsigned integer.

this is for external usage.

1. Functor YAPFunctor::fun(): : Getter: extract the C functor.

this is for external usage.

Private-func:

1. YAPFunctor::YAPFunctor(Functor ff): : Constructor: receives Prolog functor and casts it to YAPFunctor.

Notice that this is designed for internal use only.

Private-attrib:

1. Functor YAPFunctor::f:

Friends:

1. friend class YAPApplTerm:

1. friend class YAPTerm:

1. friend class YAPPredicate:

1. friend class YAPQuery:

Class: YAPProp