25#include "Predicate.hpp"
29 return cs(name).purple();
34 s += latex_escape_characters(name);
40 return (name == p2.name) && (arity == p2.arity);
48ostream& operator<<(ostream& out,
const Predicate& p) {
49 out <<
"Predicate: " << setw(params::output_width) << p.id
50 <<
" Name: " << setw(params::output_width + 15) << p.name
51 <<
" Arity: " << setw(params::output_width) << p.arity;
Basic representation of predicates: here just names, ids and arities.
bool is_compatible_with(const Predicate &) const
Do the name and the arity of a pair of Predicates both match?
string make_LaTeX() const
Make a useable LaTeX version.
string to_string() const
Converting to a string just gives you the name.
Simple addition of colour to strings and ostreams.