|
| PInt (int value) |
| Constructs a PInt with the given value.
|
|
std::string | repr () const override |
| Returns a string representation of the integer.
|
|
bool | isEqualTo (Term &t) const override |
| Checks if the term is equal to another term.
|
|
bool | isLessThan (Term &t) const override |
| < operator for a PInt and a Term
|
|
int | getValue () const |
| Get the value of the integer.
|
|
virtual TermPtr | dereference () |
| Dereferences the term. The default is to return a shared pointer to term itself.
|
|
virtual bool | unifyWith (Engine *engine, TermPtr t) |
| A hook for unification of user-defined classes. Only override this method if you want to unify user-defined classes.
|
|
virtual bool | is_var () |
| Checks if the term is a variable.
|
|
| Term () |
| Default constructor.
|
|
virtual | ~Term () |
| Virtual destructor for proper cleanup.
|
|
Represents a Prolog integer.
PInt objects approximate Prolog integers. Integers are immutable and cannot be bound to other terms.