25#ifndef PL_SEARCH_CLIST_HPP
26#define PL_SEARCH_CLIST_HPP
73 std::string
repr()
const override {
74 std::ostringstream oss;
92 if (
CList *list =
dynamic_cast<CList *
>(&other)) {
Represents a list of terms.
Definition clist.hpp:58
CList(std::list< TermPtr > &elems)
Constructs a CList with the given elements.
Definition clist.hpp:67
const std::list< TermPtr > & getElements() const
Returns the elements of the list.
Definition clist.hpp:116
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:73
std::list< TermPtr > & elements
The elements of the list.
Definition clist.hpp:60
bool isEqualTo(Term &other) const override
Checks if the term is equal to another term.
Definition clist.hpp:91
void addElement(TermPtr element)
Adds an element to the list.
Definition clist.hpp:110
Abstract base class for terms that approximate Prolog terms.
Definition term.hpp:50
Definition choice_iterator.hpp:16
std::shared_ptr< Term > TermPtr
Typedefs for shared pointers to Terms and subclasses.
Definition typedefs.hpp:43
Definition of the Term class.
Definition of common typedefs used in the pl_search library.