LibreOffice Module sc (master) 1
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
sc::opencl::DynamicKernelArgument Class Referenceabstract

(Partially) abstract base class for an operand More...

#include <opbase.hxx>

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

Public Member Functions

 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...
 

Static Public Member Functions

static void ClearStringIds ()
 

Static Protected Member Functions

static int GetStringId (const rtl_uString *string)
 

Protected Attributes

const ScCalcConfigmCalcConfig
 
std::string mSymName
 
FormulaTreeNodeRef mFormulaTree
 

Detailed Description

(Partially) abstract base class for an operand

Definition at line 124 of file opbase.hxx.

Constructor & Destructor Documentation

◆ DynamicKernelArgument() [1/2]

sc::opencl::DynamicKernelArgument::DynamicKernelArgument ( const DynamicKernelArgument )
delete

delete copy constructor

◆ DynamicKernelArgument() [2/2]

sc::opencl::DynamicKernelArgument::DynamicKernelArgument ( const ScCalcConfig config,
std::string  s,
FormulaTreeNodeRef  ft 
)

Definition at line 43 of file opbase.cxx.

References config, and ft.

◆ ~DynamicKernelArgument()

virtual sc::opencl::DynamicKernelArgument::~DynamicKernelArgument ( )
inlinevirtual

Definition at line 134 of file opbase.hxx.

Member Function Documentation

◆ ClearStringIds()

void sc::opencl::DynamicKernelArgument::ClearStringIds ( )
static

Definition at line 122 of file opbase.cxx.

References sc::opencl::stringIdsMap.

◆ DumpInlineFun()

void sc::opencl::DynamicKernelArgument::DumpInlineFun ( std::set< std::string > &  ,
std::set< std::string > &   
) const
virtual

Reimplemented in sc::opencl::VectorRef.

Definition at line 76 of file opbase.cxx.

◆ DumpOpName()

std::string sc::opencl::DynamicKernelArgument::DumpOpName ( ) const
virtual

Reimplemented in sc::opencl::VectorRef.

Definition at line 71 of file opbase.cxx.

◆ GenDecl()

virtual void sc::opencl::DynamicKernelArgument::GenDecl ( outputstream ss) const
pure virtual

◆ GenDeclRef()

void sc::opencl::DynamicKernelArgument::GenDeclRef ( outputstream ss) const
virtual

Generate use/references to the argument.

Reimplemented in sc::opencl::DynamicKernelConstantArgument.

Definition at line 59 of file opbase.cxx.

References mSymName.

◆ GenDoubleSlidingWindowDeclRef()

std::string sc::opencl::DynamicKernelArgument::GenDoubleSlidingWindowDeclRef ( bool  = false) const
virtual

When Mix, it will be called.

Definition at line 47 of file opbase.cxx.

◆ GenIsString()

virtual std::string sc::opencl::DynamicKernelArgument::GenIsString ( bool  = false) const
inlinevirtual

Will generate value saying whether the value is a string.

Reimplemented in sc::opencl::DynamicKernelStringArgument.

Definition at line 157 of file opbase.hxx.

◆ GenSlidingWindowDecl()

virtual void sc::opencl::DynamicKernelArgument::GenSlidingWindowDecl ( outputstream ss) const
pure virtual

When declared as input to a sliding window function.

Implemented in sc::opencl::VectorRef, sc::opencl::DynamicKernelStringArgument, and sc::opencl::DynamicKernelConstantArgument.

◆ GenSlidingWindowDeclRef()

virtual std::string sc::opencl::DynamicKernelArgument::GenSlidingWindowDeclRef ( bool  = false) const
pure virtual

When referenced in a sliding window function.

Implemented in sc::opencl::VectorRef, sc::opencl::DynamicKernelConstantArgument, and sc::opencl::DynamicKernelStringToZeroArgument.

◆ GenSlidingWindowFunction()

void sc::opencl::DynamicKernelArgument::GenSlidingWindowFunction ( outputstream )
virtual

Reimplemented in sc::opencl::VectorRef, and sc::opencl::DynamicKernelStringArgument.

Definition at line 64 of file opbase.cxx.

◆ GenStringSlidingWindowDeclRef()

std::string sc::opencl::DynamicKernelArgument::GenStringSlidingWindowDeclRef ( bool  = false) const
virtual

When Mix, it will be called.

Definition at line 53 of file opbase.cxx.

◆ GetFormulaToken()

FormulaToken * sc::opencl::DynamicKernelArgument::GetFormulaToken ( ) const

◆ GetName()

const std::string & sc::opencl::DynamicKernelArgument::GetName ( ) const

Definition at line 78 of file opbase.cxx.

References mSymName.

◆ GetStringId()

int sc::opencl::DynamicKernelArgument::GetStringId ( const rtl_uString *  string)
staticprotected

Definition at line 110 of file opbase.cxx.

References sc::opencl::stringIdsMap.

Referenced by sc::opencl::DynamicKernelStringArgument::Marshal().

◆ GetWindowSize()

virtual size_t sc::opencl::DynamicKernelArgument::GetWindowSize ( ) const
pure virtual

◆ IsEmpty()

virtual bool sc::opencl::DynamicKernelArgument::IsEmpty ( ) const
inlinevirtual

If there's actually no argument, i.e. it expands to no code.

Definition at line 169 of file opbase.hxx.

◆ Marshal()

virtual size_t sc::opencl::DynamicKernelArgument::Marshal ( cl_kernel  ,
int  ,
int  ,
cl_program   
)
pure virtual

Create buffer and pass the buffer to a given kernel.

Implemented in sc::opencl::DynamicKernelConstantArgument, sc::opencl::VectorRef, and sc::opencl::DynamicKernelStringArgument.

◆ NeedParallelReduction()

bool sc::opencl::DynamicKernelArgument::NeedParallelReduction ( ) const
virtual

Reimplemented in sc::opencl::VectorRef.

Definition at line 83 of file opbase.cxx.

◆ operator=()

const DynamicKernelArgument & sc::opencl::DynamicKernelArgument::operator= ( const DynamicKernelArgument )
delete

delete copy-assignment operator

Member Data Documentation

◆ mCalcConfig

const ScCalcConfig& sc::opencl::DynamicKernelArgument::mCalcConfig
protected

Definition at line 174 of file opbase.hxx.

◆ mFormulaTree

FormulaTreeNodeRef sc::opencl::DynamicKernelArgument::mFormulaTree
protected

◆ mSymName

std::string sc::opencl::DynamicKernelArgument::mSymName
protected

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