diff options
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; |
