summaryrefslogtreecommitdiff
path: root/sc/source/core/opencl/opbase.hxx
diff options
context:
space:
mode:
authorhaochen <haochen@multicorewareinc.com>2014-05-29 09:09:55 +0800
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-06-10 15:58:26 +0200
commitc3383aafa18ef9d03b04b2a4719e71fdfabc14eb (patch)
tree94fb5a2c16ef9d1154e035ab1d572d3eb271a02c /sc/source/core/opencl/opbase.hxx
parentaa294679810972d43f1ad0735319d9a06936210b (diff)
GPU Calc:Support string arguments in VLookup
Change-Id: Ic2400a13c07c5b08beccaeffef4899c8f8b43af8
Diffstat (limited to 'sc/source/core/opencl/opbase.hxx')
-rw-r--r--sc/source/core/opencl/opbase.hxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sc/source/core/opencl/opbase.hxx b/sc/source/core/opencl/opbase.hxx
index 6cd04a9ee23e..d1d00058a02f 100644
--- a/sc/source/core/opencl/opbase.hxx
+++ b/sc/source/core/opencl/opbase.hxx
@@ -165,8 +165,14 @@ public:
virtual std::string GenStringSlidingWindowDeclRef(bool=false) const
{ return std::string(""); }
+ virtual bool IsMixedArgument() const
+ { return false; }
+
/// Generate use/references to the argument
virtual void GenDeclRef(std::stringstream &ss) const;
+ virtual void GenNumDeclRef(std::stringstream &ss) const{ss << ",";}
+
+ virtual void GenStringDeclRef(std::stringstream &ss) const{ss << ",";}
/// Create buffer and pass the buffer to a given kernel
virtual size_t Marshal(cl_kernel, int, int, cl_program) = 0;
@@ -205,7 +211,7 @@ public:
virtual void GenSlidingWindowDecl(std::stringstream &ss) const SAL_OVERRIDE;
/// When referenced in a sliding window function
- virtual std::string GenSlidingWindowDeclRef(bool=false) const SAL_OVERRIDE;
+ virtual std::string GenSlidingWindowDeclRef(bool=true) const SAL_OVERRIDE;
/// Create buffer and pass the buffer to a given kernel
virtual size_t Marshal(cl_kernel, int, int, cl_program) SAL_OVERRIDE;