Class to provide access to terms in a program.
More...
#include <base.hh>
|
auto | operator== (Term const &a, Term const &b) noexcept -> bool |
| Compare two terms for equality.
|
|
auto | operator<=> (Term const &a, Term const &b) noexcept -> std::strong_ordering |
| Compare two terms.
|
|
Class to provide access to terms in a program.
◆ Term()
Construct a term from its C representation.
- Parameters
-
base | the C term base |
index | the index of the term |
◆ condition()
Get the condition of the term.
- Returns
- the conditions as a vector of program literal vectors
◆ hash()
auto Clingo::Term::hash |
( |
| ) |
const -> size_t |
|
inlinenoexcept |
Get the hash of the term.
The hash enables usage in hash tables. There is also an associtaed specialization of std::hash
for this class.
- Returns
- the term's hash
◆ symbol()
auto Clingo::Term::symbol |
( |
| ) |
const -> Symbol |
|
inline |
Get the symbol of the term.
- Returns
- the symbol of the term
◆ operator<=>
auto operator<=> |
( |
Term const & |
a, |
|
|
Term const & |
b |
|
) |
| -> std::strong_ordering |
|
friend |
Compare two terms.
- Parameters
-
a | the first term |
b | the second term |
- Returns
- the result of the comparison
◆ operator==
auto operator== |
( |
Term const & |
a, |
|
|
Term const & |
b |
|
) |
| -> bool |
|
friend |
Compare two terms for equality.
- Parameters
-
a | the first term |
b | the second term |
- Returns
- whether the two terms are equal
The documentation for this class was generated from the following file: