|
| UpdatablePVar (TermPtr t) |
|
TermPtr | dereference () override |
| Dereferences the variable to find the actual term it points to.
|
|
| PVar () |
| Constructs a PVar.
|
|
virtual bool | bind (const TermPtr &t) |
| Binds the variable to a term.
|
|
void | reset (const TermPtr &t) |
| Resets the variable to point at the supplied term.
|
|
bool | is_var () override |
| Checks if the term is a variable.
|
|
bool | isLessThan (Term &other) const override |
| Checks if the variable is less than another term.
|
|
int | getVarId () const |
| Returns the variable ID.
|
|
std::string | repr () const override |
| Returns a string representation of the term.
|
|
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.
|
|
| Term () |
| Default constructor.
|
|
virtual | ~Term () |
| Virtual destructor for proper cleanup.
|
|
UpdatableVar implements what some Prologs call updatable assignment.