diff options
| Commit | 13f94e28b06966adcfee9a8a7d90b49b1e4bf3a1 (patch) | |
|---|---|---|
| Author | 2022-05-28 16:08:58 +0300 | |
| Committer | 2022-05-28 16:08:58 +0300 | |
| Files | d7c45f8697eeeff2958d38a053f49a8c050d4fb7 /src | |
| FMI-OOP-P2_Tables-13f94e28b06966adcfee9a8a7d90b49b1e4bf3a1.tar FMI-OOP-P2_Tables-13f94e28b06966adcfee9a8a7d90b49b1e4bf3a1.tar.gz FMI-OOP-P2_Tables-13f94e28b06966adcfee9a8a7d90b49b1e4bf3a1.zip | ||
| Parent | a5911deca3452f428f38084354ed2d5ba432da8b (diff) | |
Autocommit at 28.05.2022 @ 16:08
2 files changed, 14 insertions, 1 deletions
| -rw-r--r-- | src/Generic/Pair/Pair.hpp | 13 | ||||
| -rw-r--r-- | src/Models/CellFormula.h | 2 |
diff --git a/src/Generic/Pair/Pair.hpp b/src/Generic/Pair/Pair.hpp new file mode 100644 index 0000000..460bd56 --- /dev/null +++ b/src/Generic/Pair/Pair.hpp @@ -0,0 +1,13 @@ +#ifndef PAIR +#define PAIR + +template <typename T, typename U> +class Pair { + T left; + U right; + +public: + Pair(const T& left, const U& right); +}; + +#endif diff --git a/src/Models/CellFormula.h b/src/Models/CellFormula.h index d3c3304..cf349e0 100644 --- a/src/Models/CellFormula.h +++ b/src/Models/CellFormula.h @@ -6,8 +6,8 @@ class CellFormula : public Cell { List<Cell*> referencedCells; + List<Pair<Cell*, char>> formula; String rawFormula; - double value; public: CellFormula() = default; |
