25#ifndef PL_SEARCH_PFLOAT_HPP
26#define PL_SEARCH_PFLOAT_HPP
60 std::string
repr()
const override {
return std::to_string(
value); }
Represents a Prolog float.
Definition pfloat.hpp:47
bool isEqualTo(Term &t) const override
Checks if the term is equal to another term.
Definition pfloat.hpp:67
std::string repr() const override
Returns a string representation of the float.
Definition pfloat.hpp:60
bool isLessThan(Term &t) const override
< operator for a PFloat and a Term
Definition term.cpp:106
double getValue() const
Returns the value of the float.
Definition pfloat.hpp:85
double value
The value of the float.
Definition pfloat.hpp:88
PFloat(double value)
Constructs a PFloat with the given value.
Definition pfloat.hpp:53
Abstract base class for terms that approximate Prolog terms.
Definition term.hpp:50
Definition choice_iterator.hpp:16
Definition of the Term class.
Definition of common typedefs used in the pl_search library.