diff options
Diffstat (limited to 'src/Model/Cell.hpp')
| -rw-r--r-- | src/Model/Cell.hpp | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/src/Model/Cell.hpp b/src/Model/Cell.hpp index 7638c4e..cb4bc21 100644 --- a/src/Model/Cell.hpp +++ b/src/Model/Cell.hpp @@ -24,35 +24,51 @@ template<class T> class Cell m_Element->setValue(value); } + //Destructor ~Cell() { delete m_Element; } - + //Test if the cell is empty bool isEmpty() { return true; } - std::string getElementValue() - { - return m_Element->getValue(); + T getElement(){ + return this->m_Element; } - bool equals(Cell *otherCell) - { + bool equals(Cell<T> *cell){ + /*if(cell->getElement() == this->m_Element){ + return true; + }*/ return true; } + //Return the element value + std::string getElementValue() + { + return m_Element->getValue(); + } + + // Description std::string description() { return m_Element->description(); } - + }; + + +template<class T> +bool operator==(Cell<T> a, Cell<T> b){ + return true; +} + #endif |
