summaryrefslogtreecommitdiff
path: root/src/Model/Cell.hpp
diff options
context:
space:
mode:
authormanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 18:15:14 +0200
committermanzerbredes <loic.guegan_secondary@yahoo.fr>2015-05-02 18:15:14 +0200
commit27d646af15bc9147a141aced8cebd30668de9a8e (patch)
tree81fab7651570910f9232e90b50ba43c061585858 /src/Model/Cell.hpp
parent6b8a144bd192de206e11a171841ec6161d11b6aa (diff)
Restart project
Diffstat (limited to 'src/Model/Cell.hpp')
-rw-r--r--src/Model/Cell.hpp74
1 files changed, 0 insertions, 74 deletions
diff --git a/src/Model/Cell.hpp b/src/Model/Cell.hpp
deleted file mode 100644
index 3371fda..0000000
--- a/src/Model/Cell.hpp
+++ /dev/null
@@ -1,74 +0,0 @@
-#ifndef DEF_CELL
-#define DEF_CELL
-
-/* Cell.h
- * Defines the class Cell
- * A cell represents a cell in the grid
- * Creators : krilius, manzerbredes
- * Date : 29/04/2015 */
-
-#include <iostream>
-
-
-template<class T> class Cell
-{
- private:
- T* m_Element;
-
- public:
-
- //Constructor
- Cell(std::string value)
- {
- m_Element=new T();
- m_Element->setValue(value);
- }
-
-
- //Destructor
- ~Cell()
- {
- delete m_Element;
- }
-
- //Test if the cell is empty
- bool isEmpty()
- {
- return this->m_Element->isEmpty();
- }
-
- T* getElement(){
- return this->m_Element;
- }
-
- bool equals(Cell<T> *cell){
- if(m_Element->equals(cell->getElement())){
- return true;
- }
- return false;
- }
-
- //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 a.equals(&b);
-}
-
-#endif
-