Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Models / CellFormula.h
diff options
context:
space:
mode:
Commit8cd7e44980107a3e205f67834eaea20927c6a0fe (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 15:52:23 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 15:52:23 +0300
Files012f3d4fdd2aaae7575579405f61efe7f85a7dc7 /src/Models/CellFormula.h
FMI-OOP-P2_Tables-8cd7e44980107a3e205f67834eaea20927c6a0fe.tar
FMI-OOP-P2_Tables-8cd7e44980107a3e205f67834eaea20927c6a0fe.tar.gz
FMI-OOP-P2_Tables-8cd7e44980107a3e205f67834eaea20927c6a0fe.zip
Parent7571a449b3f90e3f723488f167c25a3d095e0093 (diff)
Started work on making edit work with cells, referenced by formulas
1 files changed, 5 insertions, 1 deletions
-rw-r--r--src/Models/CellFormula.h6
diff --git a/src/Models/CellFormula.h b/src/Models/CellFormula.h
index 2aaba0f..3387c4a 100644
--- a/src/Models/CellFormula.h
+++ b/src/Models/CellFormula.h
@@ -7,10 +7,14 @@
#include "../Generic/Pair/Pair.hpp"
class CellFormula : public Cell {
+ struct CellLoc {
+ int firstInd;
+ int secondInd;
+ };
const List<List<Cell*>>* tableCells;
List<CellDouble> localCells;
- List<Pair<Cell*, char>> formula;
+ List<Pair<CellLoc, char>> formula;
String rawFormula;
double calculate(unsigned index = 0);