summaryrefslogtreecommitdiff
path: root/include/formula/vectortoken.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-04-29 19:19:48 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-04-30 13:10:44 -0400
commite38d20c1e1146f2510f8482ea82fd0af3be67325 (patch)
tree2fb8c4ebf12f34bbd0f182c902b656a43a8d6719 /include/formula/vectortoken.hxx
parentf07601a255eaad729fdb2fffc36336a4cd364501 (diff)
Handle range references for group calculation. This is still untested.
Change-Id: I1eb1c217db66615028faa85720838579056dc150
Diffstat (limited to 'include/formula/vectortoken.hxx')
-rw-r--r--include/formula/vectortoken.hxx17
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;
};
}