Kaydet (Commit) ee289aaf authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Let's not forget to check this in...

Curse the sc / formula split...

Change-Id: Ib8d17ba63d05eb4df7e6918e0034d91dd82869e3
üst d9f9c9dd
......@@ -17,6 +17,11 @@ VectorArray::VectorArray( const double* pArray, size_t nLength ) :
SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) :
FormulaToken(svSingleVectorRef, ocPush), maArray(pArray, nLength) {}
FormulaToken* SingleVectorRefToken::Clone() const
{
return new SingleVectorRefToken(maArray.mpArray, maArray.mnLength);
}
const VectorArray& SingleVectorRefToken::GetArray() const
{
return maArray;
......@@ -27,6 +32,11 @@ DoubleVectorRefToken::DoubleVectorRefToken(
FormulaToken(svDoubleVectorRef, ocPush),
maArrays(rArrays), mnRowSize(nRowSize), mbAbsStart(bAbsStart), mbAbsEnd(bAbsEnd) {}
FormulaToken* DoubleVectorRefToken::Clone() const
{
return new DoubleVectorRefToken(maArrays, mnRowSize, mbAbsStart, mbAbsEnd);
}
const std::vector<VectorArray>& DoubleVectorRefToken::GetArrays() const
{
return maArrays;
......
......@@ -28,6 +28,8 @@ class FORMULA_DLLPUBLIC SingleVectorRefToken : public FormulaToken
public:
SingleVectorRefToken( const double* pArray, size_t nLength );
virtual FormulaToken* Clone() const;
const VectorArray& GetArray() const;
};
......@@ -48,6 +50,8 @@ public:
DoubleVectorRefToken(
const std::vector<VectorArray>& rArrays, size_t nRowSize, bool bAbsStart, bool bAbsEnd );
virtual FormulaToken* Clone() const;
const std::vector<VectorArray>& GetArrays() const;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment