LibreOffice Module sc (master) 1
Public Member Functions | List of all members
sc::opencl::DynamicKernelConstantArgument Class Reference

Arguments that are actually compile-time constants. More...

#include <opbase.hxx>

Inheritance diagram for sc::opencl::DynamicKernelConstantArgument:
[legend]
Collaboration diagram for sc::opencl::DynamicKernelConstantArgument:
[legend]

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 DynamicKernelArgumentoperator= (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::FormulaTokenGetFormulaToken () 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 ScCalcConfigmCalcConfig
 
std::string mSymName
 
FormulaTreeNodeRef mFormulaTree
 

Detailed Description

Arguments that are actually compile-time constants.

Definition at line 253 of file opbase.hxx.

Constructor & Destructor Documentation

◆ DynamicKernelConstantArgument()

sc::opencl::DynamicKernelConstantArgument::DynamicKernelConstantArgument ( const ScCalcConfig config,
const std::string &  s,
const FormulaTreeNodeRef ft 
)
inline

Definition at line 256 of file opbase.hxx.

References config, and ft.

Member Function Documentation

◆ GenDecl()

virtual void sc::opencl::DynamicKernelConstantArgument::GenDecl ( outputstream ss) const
inlineoverridevirtual

Generate declaration.

Implements sc::opencl::DynamicKernelArgument.

Definition at line 260 of file opbase.hxx.

References sc::opencl::DynamicKernelArgument::mSymName.

Referenced by GenSlidingWindowDecl().

◆ GenDeclRef()

virtual void sc::opencl::DynamicKernelConstantArgument::GenDeclRef ( outputstream ss) const
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.

◆ GenSlidingWindowDecl()

virtual void sc::opencl::DynamicKernelConstantArgument::GenSlidingWindowDecl ( outputstream ss) const
inlineoverridevirtual

When declared as input to a sliding window function.

Implements sc::opencl::DynamicKernelArgument.

Definition at line 268 of file opbase.hxx.

References GenDecl().

◆ GenSlidingWindowDeclRef()

virtual std::string sc::opencl::DynamicKernelConstantArgument::GenSlidingWindowDeclRef ( bool  = false) const
inlineoverridevirtual

◆ GetDouble()

virtual double sc::opencl::DynamicKernelConstantArgument::GetDouble ( ) const
inlinevirtual

◆ GetWindowSize()

virtual size_t sc::opencl::DynamicKernelConstantArgument::GetWindowSize ( ) const
inlineoverridevirtual

Implements sc::opencl::DynamicKernelArgument.

Definition at line 278 of file opbase.hxx.

◆ Marshal()

virtual size_t sc::opencl::DynamicKernelConstantArgument::Marshal ( cl_kernel  k,
int  argno,
int  ,
cl_program   
)
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.


The documentation for this class was generated from the following file: