LibreOffice Module sc (master) 1
|
(Partially) abstract base class for an operand More...
#include <opbase.hxx>
Public Member Functions | |
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... | |
Static Public Member Functions | |
static void | ClearStringIds () |
Static Protected Member Functions | |
static int | GetStringId (const rtl_uString *string) |
Protected Attributes | |
const ScCalcConfig & | mCalcConfig |
std::string | mSymName |
FormulaTreeNodeRef | mFormulaTree |
(Partially) abstract base class for an operand
Definition at line 124 of file opbase.hxx.
|
delete |
delete copy constructor
sc::opencl::DynamicKernelArgument::DynamicKernelArgument | ( | const ScCalcConfig & | config, |
std::string | s, | ||
FormulaTreeNodeRef | ft | ||
) |
Definition at line 43 of file opbase.cxx.
|
inlinevirtual |
Definition at line 134 of file opbase.hxx.
|
static |
Definition at line 122 of file opbase.cxx.
References sc::opencl::stringIdsMap.
|
virtual |
Reimplemented in sc::opencl::VectorRef.
Definition at line 76 of file opbase.cxx.
|
virtual |
Reimplemented in sc::opencl::VectorRef.
Definition at line 71 of file opbase.cxx.
|
pure virtual |
Generate declaration.
Implemented in sc::opencl::VectorRef, sc::opencl::DynamicKernelStringArgument, and sc::opencl::DynamicKernelConstantArgument.
|
virtual |
Generate use/references to the argument.
Reimplemented in sc::opencl::DynamicKernelConstantArgument.
Definition at line 59 of file opbase.cxx.
References mSymName.
|
virtual |
When Mix, it will be called.
Definition at line 47 of file opbase.cxx.
|
inlinevirtual |
Will generate value saying whether the value is a string.
Reimplemented in sc::opencl::DynamicKernelStringArgument.
Definition at line 157 of file opbase.hxx.
|
pure virtual |
When declared as input to a sliding window function.
Implemented in sc::opencl::VectorRef, sc::opencl::DynamicKernelStringArgument, and sc::opencl::DynamicKernelConstantArgument.
|
pure virtual |
When referenced in a sliding window function.
Implemented in sc::opencl::VectorRef, sc::opencl::DynamicKernelConstantArgument, and sc::opencl::DynamicKernelStringToZeroArgument.
|
virtual |
Reimplemented in sc::opencl::VectorRef, and sc::opencl::DynamicKernelStringArgument.
Definition at line 64 of file opbase.cxx.
|
virtual |
When Mix, it will be called.
Definition at line 53 of file opbase.cxx.
FormulaToken * sc::opencl::DynamicKernelArgument::GetFormulaToken | ( | ) | const |
Definition at line 66 of file opbase.cxx.
References mFormulaTree.
Referenced by sc::opencl::VectorRef::GenSlidingWindowDeclRef(), sc::opencl::DynamicKernelConstantArgument::GenSlidingWindowDeclRef(), and sc::opencl::DynamicKernelConstantArgument::GetDouble().
const std::string & sc::opencl::DynamicKernelArgument::GetName | ( | ) | const |
Definition at line 78 of file opbase.cxx.
References mSymName.
|
staticprotected |
Definition at line 110 of file opbase.cxx.
References sc::opencl::stringIdsMap.
Referenced by sc::opencl::DynamicKernelStringArgument::Marshal().
|
pure virtual |
Implemented in sc::opencl::VectorRef, and sc::opencl::DynamicKernelConstantArgument.
|
inlinevirtual |
If there's actually no argument, i.e. it expands to no code.
Definition at line 169 of file opbase.hxx.
|
pure virtual |
Create buffer and pass the buffer to a given kernel.
Implemented in sc::opencl::DynamicKernelConstantArgument, sc::opencl::VectorRef, and sc::opencl::DynamicKernelStringArgument.
|
virtual |
Reimplemented in sc::opencl::VectorRef.
Definition at line 83 of file opbase.cxx.
|
delete |
delete copy-assignment operator
|
protected |
Definition at line 174 of file opbase.hxx.
|
protected |
Definition at line 176 of file opbase.hxx.
Referenced by sc::opencl::DynamicKernelStringArgument::GenIsString(), GetFormulaToken(), sc::opencl::VectorRef::GetWindowSize(), sc::opencl::VectorRef::Marshal(), and sc::opencl::DynamicKernelStringArgument::Marshal().
|
protected |
Definition at line 175 of file opbase.hxx.
Referenced by sc::opencl::VectorRef::GenDecl(), sc::opencl::DynamicKernelStringArgument::GenDecl(), sc::opencl::DynamicKernelConstantArgument::GenDecl(), GenDeclRef(), sc::opencl::DynamicKernelConstantArgument::GenDeclRef(), sc::opencl::DynamicKernelStringArgument::GenIsString(), sc::opencl::VectorRef::GenSlidingWindowDeclRef(), sc::opencl::DynamicKernelConstantArgument::GenSlidingWindowDeclRef(), sc::opencl::DynamicKernelStringToZeroArgument::GenSlidingWindowDeclRef(), GetName(), sc::opencl::VectorRef::GetName(), and sc::opencl::VectorRef::VectorRef().