From 3e3cc16699b2cf4d24629ba24c6d72ff912f0d96 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Fri, 15 Jun 2012 11:29:07 +1000 Subject: Remove a file that really should already be gone. --- impl/Variable.hpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 impl/Variable.hpp diff --git a/impl/Variable.hpp b/impl/Variable.hpp deleted file mode 100644 index a174ea8..0000000 --- a/impl/Variable.hpp +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef VARIABLE_HPP -#define VARIABLE_HPP - -#include -#include "Operator.hpp" - -template -struct Variable : public Operator { - Variable(unsigned int id, const std::string& name) - : _id(id), _name(name) { } - Variable(const Variable& other) - : _id(other._id) { } - unsigned int id() const { - return _id; - } - std::string name() const { - return _name; - } - //T operator() (const std::vector< Expression* >& args, const VariableAssignment& ass) const { - virtual T operator() (const std::vector< Expression* >& args, const VariableAssignment& assignment) const { - //assert(args.size() == 0) - return assignment[*this]; - } - private: - const unsigned int _id; - const std::string _name; -}; - -template -std::ostream& operator<<(std::ostream& cout, const Variable& v) { - cout << v.name() << "(" << v.id() << ")"; - return cout; -} - -#endif -- cgit v1.2.3