33#include "LaTeXUtilities.hpp"
34#include "BasicTypes.hpp"
35#include "Parameters.hpp"
36#include "vic_strings.hpp"
62 Predicate(ID new_id) : id(new_id), name(), arity(0) {}
63 Predicate(ID new_id,
const string& new_name)
64 : id(new_id), name(new_name), arity(0) {}
65 Predicate(ID new_id,
const string& new_name, Arity new_arity)
66 : id(new_id), name(new_name), arity(new_arity) {}
82 inline ID
get_ID()
const {
return id; }
86 inline string get_name()
const {
return name; }
Basic representation of predicates: here just names, ids and arities.
Definition Predicate.hpp:51
Arity get_arity() const
Basic get method.
Definition Predicate.hpp:90
bool is_compatible_with(const Predicate &) const
Do the name and the arity of a pair of Predicates both match?
Definition Predicate.cpp:39
ID get_ID() const
Basic get method.
Definition Predicate.hpp:82
Predicate(const Predicate &)=delete
Don't allow copies of these to be made.
string make_LaTeX() const
Make a useable LaTeX version.
Definition Predicate.cpp:32
friend ostream & operator<<(ostream &, const Predicate &)
Only for debugging.
Definition Predicate.cpp:48
string to_string() const
Converting to a string just gives you the name.
Definition Predicate.cpp:27
string get_name() const
Basic get method.
Definition Predicate.hpp:86
Management of Predicate objects.
Definition PredicateIndex.hpp:58