LibreOffice Module sc (master) 1
|
#include <opbase.hxx>
Static Public Member Functions | |
static void | GenTmpVariables (outputstream &ss, const SubArguments &vSubArguments) |
static void | CheckSubArgumentIsNan (outputstream &ss, SubArguments &vSubArguments, int argumentNum) |
static void | CheckAllSubArgumentIsNan (outputstream &ss, SubArguments &vSubArguments) |
static void | CheckSubArgumentIsNan2 (outputstream &ss, SubArguments &vSubArguments, int argumentNum, const std::string &p) |
static void | UnrollDoubleVector (outputstream &ss, const outputstream &unrollstr, const formula::DoubleVectorRefToken *pCurDVR, int nCurWindowSize) |
Static Public Member Functions inherited from sc::opencl::OpBase | |
static std::string | Gen (std::vector< std::string > &) |
Additional Inherited Members | |
Public Types inherited from sc::opencl::SlidingFunctionBase | |
typedef std::vector< DynamicKernelArgumentRef > | SubArguments |
Public Member Functions inherited from sc::opencl::Normal | |
virtual void | GenSlidingWindowFunction (outputstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override |
virtual bool | takeString () const override |
virtual bool | takeNumeric () const override |
virtual void | GenSlidingWindowFunction (outputstream &, const std::string &, SubArguments &)=0 |
Public Member Functions inherited from sc::opencl::OpBase | |
virtual std::string | GetBottom () |
virtual std::string | Gen2 (const std::string &, const std::string &) const |
virtual std::string | BinFuncName () const |
virtual void | BinInlineFun (std::set< std::string > &, std::set< std::string > &) |
virtual bool | takeString () const =0 |
virtual bool | takeNumeric () const =0 |
virtual bool | canHandleMultiVector () const |
virtual bool | ZeroReturnZero () |
virtual bool | forceStringsToZero () const |
virtual | ~OpBase () |
Protected Types inherited from sc::opencl::SlidingFunctionBase | |
enum | EmptyArgType { EmptyIsZero , EmptyIsNan , SkipEmpty } |
enum | GenerateArgTypeType { DoNotGenerateArgType , GenerateArgType } |
Protected Member Functions inherited from sc::opencl::SlidingFunctionBase | |
void | GenerateFunctionDeclaration (const std::string &sSymName, SubArguments &vSubArguments, outputstream &ss) |
void | GenerateArg (const char *name, int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero, GenerateArgTypeType generateType=DoNotGenerateArgType) |
void | GenerateArg (int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero, GenerateArgTypeType generateType=DoNotGenerateArgType) |
void | GenerateArgWithDefault (const char *name, int arg, double def, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty=EmptyIsZero) |
void | GenerateRangeArg (int arg1, int arg2, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code, const char *firstElementDiff=nullptr) |
Static Protected Member Functions inherited from sc::opencl::SlidingFunctionBase | |
static void | GenerateRangeArgs (int firstArg, int lastArg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code) |
static void | GenerateRangeArgs (SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code) |
static void | GenerateRangeArg (int arg, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code) |
static void | GenerateRangeArgPair (int arg1, int arg2, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty, const char *code, const char *firstElementDiff=nullptr) |
static void | GenerateRangeArgElement (const char *name, int arg, const char *element, SubArguments &vSubArguments, outputstream &ss, EmptyArgType empty) |
static void | GenerateDoubleVectorLoopHeader (outputstream &ss, const formula::DoubleVectorRefToken *pDVR, const char *firstElementDiff) |
Definition at line 416 of file opbase.hxx.
|
static |
Definition at line 696 of file opbase.cxx.
References CheckSubArgumentIsNan(), and i.
Referenced by sc::opencl::OpTbillprice::GenSlidingWindowFunction().
|
static |
Definition at line 605 of file opbase.cxx.
References formula::DoubleVectorRefToken::GetArrayLength(), formula::SingleVectorRefToken::GetArrayLength(), i, ocPush, formula::svDouble, formula::svDoubleVectorRef, and formula::svSingleVectorRef.
Referenced by CheckAllSubArgumentIsNan(), sc::opencl::OpSumIfs::GenSlidingWindowFunction(), sc::opencl::OpAverageIfs::GenSlidingWindowFunction(), sc::opencl::OpCountIfs::GenSlidingWindowFunction(), sc::opencl::OpAverageIf::GenSlidingWindowFunction(), and sc::opencl::OpVLookup::GenSlidingWindowFunction().
|
static |
Definition at line 669 of file opbase.cxx.
References i, p, formula::svDouble, formula::svDoubleVectorRef, and formula::svSingleVectorRef.
Referenced by sc::opencl::OpSumIfs::GenSlidingWindowFunction().
|
static |
Definition at line 594 of file opbase.cxx.
References i.
Referenced by sc::opencl::OpTbillprice::GenSlidingWindowFunction(), sc::opencl::OpSumIfs::GenSlidingWindowFunction(), sc::opencl::OpAverageIfs::GenSlidingWindowFunction(), sc::opencl::OpCountIfs::GenSlidingWindowFunction(), sc::opencl::OpAverageIf::GenSlidingWindowFunction(), and sc::opencl::OpVLookup::GenSlidingWindowFunction().
|
static |
Definition at line 706 of file opbase.cxx.
References formula::DoubleVectorRefToken::IsEndFixed(), and formula::DoubleVectorRefToken::IsStartFixed().
Referenced by sc::opencl::OpAverageIfs::GenSlidingWindowFunction(), and sc::opencl::OpCountIfs::GenSlidingWindowFunction().