diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-29 19:19:48 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-30 13:10:44 -0400 |
commit | e38d20c1e1146f2510f8482ea82fd0af3be67325 (patch) | |
tree | 2fb8c4ebf12f34bbd0f182c902b656a43a8d6719 /include/formula | |
parent | f07601a255eaad729fdb2fffc36336a4cd364501 (diff) |
Handle range references for group calculation. This is still untested.
Change-Id: I1eb1c217db66615028faa85720838579056dc150
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/vectortoken.hxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/formula/vectortoken.hxx b/include/formula/vectortoken.hxx index db44355cf824..2679b4ef0e06 100644 --- a/include/formula/vectortoken.hxx +++ b/include/formula/vectortoken.hxx @@ -17,7 +17,7 @@ namespace formula { class FORMULA_DLLPUBLIC SingleVectorRefToken : public FormulaToken { const double* mpArray; - size_t mnLength; + size_t mnArrayLength; public: SingleVectorRefToken( const double* pArray, size_t nLength ); @@ -25,7 +25,7 @@ public: virtual FormulaToken* Clone() const; const double* GetArray() const; - size_t GetLength() const; + size_t GetArrayLength() const; }; /** @@ -36,18 +36,23 @@ class FORMULA_DLLPUBLIC DoubleVectorRefToken : public FormulaToken { std::vector<const double*> maArrays; - size_t mnRowSize; + size_t mnArrayLength; + size_t mnRefRowSize; - bool mbAbsStart:1; /// whether or not the start row position is absolute. - bool mbAbsEnd:1; /// whether or not the end row position is absolute. + bool mbStartFixed:1; /// whether or not the start row position is absolute. + bool mbEndFixed:1; /// whether or not the end row position is absolute. public: DoubleVectorRefToken( - const std::vector<const double*>& rArrays, size_t nRowSize, bool bAbsStart, bool bAbsEnd ); + const std::vector<const double*>& rArrays, size_t nArrayLength, size_t nRefRowSize, bool bStartFixed, bool bEndFixed ); virtual FormulaToken* Clone() const; const std::vector<const double*>& GetArrays() const; + size_t GetArrayLength() const; + size_t GetRefRowSize() const; + bool IsStartFixed() const; + bool IsEndFixed() const; }; } |