25#ifndef PL_SEARCH_PINT_HPP
26#define PL_SEARCH_PINT_HPP
59 std::string
repr()
const override {
return std::to_string(
value); }
Represents a Prolog integer.
Definition pint.hpp:47
bool isLessThan(Term &t) const override
< operator for a PInt and a Term
Definition term.cpp:88
int value
The value of the integer.
Definition pint.hpp:87
int getValue() const
Get the value of the integer.
Definition pint.hpp:84
bool isEqualTo(Term &t) const override
Checks if the term is equal to another term.
Definition pint.hpp:66
PInt(int value)
Constructs a PInt with the given value.
Definition pint.hpp:53
std::string repr() const override
Returns a string representation of the integer.
Definition pint.hpp:59
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.