diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 11:29:07 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-06-15 11:29:07 +1000 |
commit | 3e3cc16699b2cf4d24629ba24c6d72ff912f0d96 (patch) | |
tree | 47e6e38d6d2bb199fb2b324f32b18726f342899f /impl/Variable.hpp | |
parent | 5f3cb0bf02ed32976370cf6c7f656d000b4d7694 (diff) |
Remove a file that really should already be gone.
Diffstat (limited to 'impl/Variable.hpp')
-rw-r--r-- | impl/Variable.hpp | 35 |
1 files changed, 0 insertions, 35 deletions
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 <string> -#include "Operator.hpp" - -template<typename T> -struct Variable : public Operator<T> { - 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<T>* >& args, const VariableAssignment<T>& ass) const { - virtual T operator() (const std::vector< Expression<T>* >& args, const VariableAssignment<T>& assignment) const { - //assert(args.size() == 0) - return assignment[*this]; - } - private: - const unsigned int _id; - const std::string _name; -}; - -template<typename T> -std::ostream& operator<<(std::ostream& cout, const Variable<T>& v) { - cout << v.name() << "(" << v.id() << ")"; - return cout; -} - -#endif |