32#include "LaTeXUtilities.hpp"
33#include "BasicTypes.hpp"
34#include "Parameters.hpp"
35#include "vic_strings.hpp"
64 Function(ID new_id) : id(new_id), name(), arity(0) {}
65 Function(ID new_id,
const string& new_name)
66 : id(new_id), name(new_name), arity(0) {}
67 Function(ID new_id,
const string& new_name, Arity new_arity)
68 : id(new_id), name(new_name), arity(new_arity) {}
84 inline string get_name()
const {
return name; }
Basic representation of functions.
friend ostream & operator<<(ostream &, const Function &)
Really only for debugging.
string make_LaTeX() const
Make a useable LaTeX version.
string to_string() const
Make a useable string representation.
Arity get_arity() const
Most basic access function.
string get_name() const
Most basic access function.
Function(const Function &)=delete
You want to inforce sharing, so don't allow copies to be made.
Function()
Constructors are private as you only want the FunctionIndex to make these, and it's a friend.
Mechanism for looking after functions.