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

A vector of strings. More...

#include <opbase.hxx>

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

Public Member Functions

 DynamicKernelStringArgument (const ScCalcConfig &config, const std::string &s, const FormulaTreeNodeRef &ft, int index=0)
 
virtual void GenSlidingWindowFunction (outputstream &) override
 
virtual void GenDecl (outputstream &ss) const override
 Generate declaration. More...
 
virtual void GenSlidingWindowDecl (outputstream &ss) const override
 When declared as input to a sliding window function. More...
 
virtual std::string GenIsString (bool=false) const override
 Will generate value saying whether the value is a string. More...
 
virtual size_t Marshal (cl_kernel, int, int, cl_program) override
 Create buffer and pass the buffer to a given kernel. More...
 
- Public Member Functions inherited from sc::opencl::VectorRef
 VectorRef (const ScCalcConfig &config, const std::string &s, const FormulaTreeNodeRef &ft, int index=0)
 
virtual ~VectorRef () override
 
virtual void GenDecl (outputstream &ss) const override
 Generate declaration. 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 Marshal (cl_kernel, int, int, cl_program) override
 Create buffer and pass the buffer to a given kernel. More...
 
virtual void GenSlidingWindowFunction (outputstream &) override
 
virtual size_t GetWindowSize () const override
 
virtual std::string DumpOpName () const override
 
virtual void DumpInlineFun (std::set< std::string > &, std::set< std::string > &) const override
 
const std::string & GetName () const
 
cl_mem GetCLBuffer () const
 
virtual bool NeedParallelReduction () const override
 
- 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::VectorRef
cl_mem mpClmem
 
const int mnIndex
 
bool forceStringsToZero
 
std::vector< double > dataBuffer
 
- Protected Attributes inherited from sc::opencl::DynamicKernelArgument
const ScCalcConfigmCalcConfig
 
std::string mSymName
 
FormulaTreeNodeRef mFormulaTree
 

Detailed Description

A vector of strings.

Definition at line 231 of file opbase.hxx.

Constructor & Destructor Documentation

◆ DynamicKernelStringArgument()

sc::opencl::DynamicKernelStringArgument::DynamicKernelStringArgument ( const ScCalcConfig config,
const std::string &  s,
const FormulaTreeNodeRef ft,
int  index = 0 
)
inline

Definition at line 234 of file opbase.hxx.

References config, ft, and index.

Member Function Documentation

◆ GenDecl()

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

Generate declaration.

Reimplemented from sc::opencl::VectorRef.

Definition at line 240 of file opbase.hxx.

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

Referenced by GenSlidingWindowDecl().

◆ GenIsString()

std::string sc::opencl::DynamicKernelStringArgument::GenIsString ( bool  = false) const
overridevirtual

◆ GenSlidingWindowDecl()

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

When declared as input to a sliding window function.

Reimplemented from sc::opencl::VectorRef.

Definition at line 244 of file opbase.hxx.

References GenDecl().

◆ GenSlidingWindowFunction()

virtual void sc::opencl::DynamicKernelStringArgument::GenSlidingWindowFunction ( outputstream )
inlineoverridevirtual

Reimplemented from sc::opencl::VectorRef.

Definition at line 238 of file opbase.hxx.

◆ Marshal()

size_t sc::opencl::DynamicKernelStringArgument::Marshal ( cl_kernel  k,
int  argno,
int  ,
cl_program   
)
overridevirtual

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