summaryrefslogtreecommitdiff
path: root/src/Model/Cell.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Cell.hpp')
-rw-r--r--src/Model/Cell.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Model/Cell.hpp b/src/Model/Cell.hpp
index cb4bc21..3371fda 100644
--- a/src/Model/Cell.hpp
+++ b/src/Model/Cell.hpp
@@ -34,18 +34,18 @@ template<class T> class Cell
//Test if the cell is empty
bool isEmpty()
{
- return true;
+ return this->m_Element->isEmpty();
}
- T getElement(){
+ T* getElement(){
return this->m_Element;
}
bool equals(Cell<T> *cell){
- /*if(cell->getElement() == this->m_Element){
+ if(m_Element->equals(cell->getElement())){
return true;
- }*/
- return true;
+ }
+ return false;
}
//Return the element value
@@ -67,7 +67,7 @@ template<class T> class Cell
template<class T>
bool operator==(Cell<T> a, Cell<T> b){
- return true;
+ return a.equals(&b);
}
#endif