LibreOffice Module sc (master)  1
Public 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, const std::string &s, const FormulaTreeNodeRef &ft)
 
virtual ~DynamicKernelArgument ()
 
virtual void GenDecl (std::stringstream &ss) const =0
 Generate declaration. More...
 
virtual void GenSlidingWindowDecl (std::stringstream &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 void GenDeclRef (std::stringstream &ss) const
 Generate use/references to the argument. More...
 
virtual void GenSlidingWindowFunction (std::stringstream &)
 
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...
 

Protected Attributes

const ScCalcConfigmCalcConfig
 
std::string mSymName
 
FormulaTreeNodeRef mFormulaTree
 

Detailed Description

(Partially) abstract base class for an operand

Definition at line 102 of file opbase.hxx.

Constructor & Destructor Documentation

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

delete copy constructor

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

Definition at line 40 of file opbase.cxx.

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

Definition at line 112 of file opbase.hxx.

Member Function Documentation

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

Reimplemented in sc::opencl::VectorRef.

Definition at line 73 of file opbase.cxx.

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

Reimplemented in sc::opencl::VectorRef.

Definition at line 68 of file opbase.cxx.

virtual void sc::opencl::DynamicKernelArgument::GenDecl ( std::stringstream &  ss) const
pure virtual

Generate declaration.

Implemented in sc::opencl::VectorRef.

void sc::opencl::DynamicKernelArgument::GenDeclRef ( std::stringstream &  ss) const
virtual

Generate use/references to the argument.

Definition at line 56 of file opbase.cxx.

References mSymName.

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

When Mix, it will be called.

Definition at line 44 of file opbase.cxx.

virtual void sc::opencl::DynamicKernelArgument::GenSlidingWindowDecl ( std::stringstream &  ss) const
pure virtual

When declared as input to a sliding window function.

Implemented in sc::opencl::VectorRef.

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

When referenced in a sliding window function.

Implemented in sc::opencl::VectorRef.

void sc::opencl::DynamicKernelArgument::GenSlidingWindowFunction ( std::stringstream &  )
virtual

Reimplemented in sc::opencl::VectorRef.

Definition at line 61 of file opbase.cxx.

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

When Mix, it will be called.

Definition at line 50 of file opbase.cxx.

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

Definition at line 63 of file opbase.cxx.

References mFormulaTree.

Referenced by sc::opencl::VectorRef::GenSlidingWindowDeclRef().

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

Definition at line 75 of file opbase.cxx.

References mSymName.

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

Implemented in sc::opencl::VectorRef.

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

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

Definition at line 144 of file opbase.hxx.

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

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

Reimplemented in sc::opencl::VectorRef.

Definition at line 80 of file opbase.cxx.

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

delete copy-assignment operator

Member Data Documentation

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

Definition at line 147 of file opbase.hxx.

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

Definition at line 149 of file opbase.hxx.

Referenced by GetFormulaToken(), and sc::opencl::VectorRef::GetWindowSize().

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

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