|
pl_search_cpp 1.4
|
UpdatableVar implements what some Prologs call updatable assignment. More...
#include <pvar.hpp>


Public Member Functions | |
| UpdatablePVar (TermPtr t) | |
| TermPtr | dereference () override |
| Dereferences the variable to find the actual term it points to. | |
Public Member Functions inherited from pl_search::PVar | |
| 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. | |
Public Member Functions inherited from pl_search::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. | |
Protected Member Functions | |
| Term * | deref_term () override |
| Similar to dereference but returning the "raw" pointer. | |
Protected Member Functions inherited from pl_search::PVar | |
| virtual bool | isEqualTo (Term &other) const override |
| Checks if the term is equal to another term. | |
Additional Inherited Members | |
Public Attributes inherited from pl_search::PVar | |
| TermPtr | value |
| The value of the variable. | |
Static Public Attributes inherited from pl_search::PVar | |
| static int | id = 0 |
| Static member to generate unique IDs for variables. | |
Protected Attributes inherited from pl_search::PVar | |
| int | var_id |
| The ID of the variable. | |
UpdatableVar implements what some Prologs call updatable assignment.
|
inline |
|
inlineoverrideprotectedvirtual |
Similar to dereference but returning the "raw" pointer.
Reimplemented from pl_search::PVar.
|
inlineoverridevirtual |
Dereferences the variable to find the actual term it points to.
Reimplemented from pl_search::PVar.