|
| PFloat (double value) |
| Constructs a PFloat with the given value.
|
|
std::string | repr () const override |
| Returns a string representation of the float.
|
|
bool | isEqualTo (Term &t) const override |
| Checks if the term is equal to another term.
|
|
bool | isLessThan (Term &t) const override |
| < operator for a PFloat and a Term
|
|
double | getValue () const |
| Returns the value of the float.
|
|
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 float.
PFloat objects approximate Prolog floats. Floats are immutable and cannot be bound to other terms.