25#include "Predicate.hpp"
29 return cs(name).purple();
38 s += latex_escape_characters(name);
48 return (name == p2.name) && (arity == p2.arity);
56ostream& operator<<(ostream& out,
const Predicate& p) {
57 out <<
"Predicate: " << setw(params::output_width) << p.id
58 <<
" Name: " << setw(params::output_width + 15) << p.name
59 <<
" 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 to_tptp_string() const
At present returns only the name.
string make_LaTeX() const
Make a useable LaTeX version.
string to_string() const
Converting to a string just gives you the name.
string make_Graphviz() const
Make a useable Graphviz version.
Simple addition of colour to strings and ostreams.