LibreOffice Module sc (master) 1
|
Arguments that are actually compile-time constants. More...
#include <opbase.hxx>
Public Member Functions | |
DynamicKernelConstantArgument (const ScCalcConfig &config, const std::string &s, const FormulaTreeNodeRef &ft) | |
virtual void | GenDecl (outputstream &ss) const override |
Generate declaration. More... | |
virtual void | GenDeclRef (outputstream &ss) const override |
Generate use/references to the argument. More... | |
virtual void | GenSlidingWindowDecl (outputstream &ss) const override |
When declared as input to a sliding window function. More... | |
virtual std::string | GenSlidingWindowDeclRef (bool=false) const override |
When referenced in a sliding window function. More... | |
virtual size_t | GetWindowSize () const override |
virtual double | GetDouble () const |
virtual size_t | Marshal (cl_kernel k, int argno, int, cl_program) override |
Create buffer and pass the buffer to a given kernel. More... | |
Public Member Functions inherited from sc::opencl::DynamicKernelArgument | |
DynamicKernelArgument (const DynamicKernelArgument &)=delete | |
delete copy constructor More... | |
const DynamicKernelArgument & | operator= (const DynamicKernelArgument &)=delete |
delete copy-assignment operator More... | |
DynamicKernelArgument (const ScCalcConfig &config, std::string s, FormulaTreeNodeRef ft) | |
virtual | ~DynamicKernelArgument () |
virtual void | GenDecl (outputstream &ss) const =0 |
Generate declaration. More... | |
virtual void | GenSlidingWindowDecl (outputstream &ss) const =0 |
When declared as input to a sliding window function. More... | |
virtual std::string | GenSlidingWindowDeclRef (bool=false) const =0 |
When referenced in a sliding window function. More... | |
virtual size_t | Marshal (cl_kernel, int, int, cl_program)=0 |
Create buffer and pass the buffer to a given kernel. More... | |
virtual size_t | GetWindowSize () const =0 |
virtual std::string | GenDoubleSlidingWindowDeclRef (bool=false) const |
When Mix, it will be called. More... | |
virtual std::string | GenStringSlidingWindowDeclRef (bool=false) const |
When Mix, it will be called. More... | |
virtual std::string | GenIsString (bool=false) const |
Will generate value saying whether the value is a string. More... | |
virtual void | GenDeclRef (outputstream &ss) const |
Generate use/references to the argument. More... | |
virtual void | GenSlidingWindowFunction (outputstream &) |
formula::FormulaToken * | GetFormulaToken () const |
virtual std::string | DumpOpName () const |
virtual void | DumpInlineFun (std::set< std::string > &, std::set< std::string > &) const |
const std::string & | GetName () const |
virtual bool | NeedParallelReduction () const |
virtual bool | IsEmpty () const |
If there's actually no argument, i.e. it expands to no code. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from sc::opencl::DynamicKernelArgument | |
static void | ClearStringIds () |
Static Protected Member Functions inherited from sc::opencl::DynamicKernelArgument | |
static int | GetStringId (const rtl_uString *string) |
Protected Attributes inherited from sc::opencl::DynamicKernelArgument | |
const ScCalcConfig & | mCalcConfig |
std::string | mSymName |
FormulaTreeNodeRef | mFormulaTree |
Arguments that are actually compile-time constants.
Definition at line 253 of file opbase.hxx.
|
inline |
Definition at line 256 of file opbase.hxx.
|
inlineoverridevirtual |
Generate declaration.
Implements sc::opencl::DynamicKernelArgument.
Definition at line 260 of file opbase.hxx.
References sc::opencl::DynamicKernelArgument::mSymName.
Referenced by GenSlidingWindowDecl().
|
inlineoverridevirtual |
Generate use/references to the argument.
Reimplemented from sc::opencl::DynamicKernelArgument.
Definition at line 264 of file opbase.hxx.
References sc::opencl::DynamicKernelArgument::mSymName.
|
inlineoverridevirtual |
When declared as input to a sliding window function.
Implements sc::opencl::DynamicKernelArgument.
Definition at line 268 of file opbase.hxx.
References GenDecl().
|
inlineoverridevirtual |
When referenced in a sliding window function.
Implements sc::opencl::DynamicKernelArgument.
Reimplemented in sc::opencl::DynamicKernelStringToZeroArgument.
Definition at line 272 of file opbase.hxx.
References sc::opencl::DynamicKernelArgument::GetFormulaToken(), sc::opencl::DynamicKernelArgument::mSymName, and formula::svDouble.
|
inlinevirtual |
Reimplemented in sc::opencl::DynamicKernelStringToZeroArgument.
Definition at line 282 of file opbase.hxx.
References formula::FormulaToken::GetDouble(), sc::opencl::DynamicKernelArgument::GetFormulaToken(), formula::FormulaToken::GetType(), and formula::svDouble.
Referenced by Marshal().
|
inlineoverridevirtual |
Implements sc::opencl::DynamicKernelArgument.
Definition at line 278 of file opbase.hxx.
|
inlineoverridevirtual |
Create buffer and pass the buffer to a given kernel.
Implements sc::opencl::DynamicKernelArgument.
Definition at line 290 of file opbase.hxx.
References err, GetDouble(), sc::opencl::preciseFloat(), and SAL_INFO.