25#ifndef PL_SEARCH_CLIST_HPP
26#define PL_SEARCH_CLIST_HPP
68 std::string
repr()
const override {
69 std::ostringstream oss;
75 oss << (*it)->dereference()->repr();
87 if (
CList* list =
dynamic_cast<CList*
>(&other)) {
Represents a list of terms.
Definition clist.hpp:53
CList(std::list< TermPtr > elems)
Constructs a CList with the given elements.
Definition clist.hpp:62
std::list< TermPtr > elements
The elements of the list.
Definition clist.hpp:55
bool isLessThan(Term &other) const override
< operator for a CList and a Term
Definition term.cpp:141
std::string repr() const override
Returns a string representation of the list.
Definition clist.hpp:68
bool isEqualTo(Term &other) const override
Checks if the term is equal to another term.
Definition clist.hpp:86
const std::list< TermPtr > getElements() const
Gets the elements of the list.
Definition clist.hpp:111
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.