LibreOffice Module sc (master)  1
op_database.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_DATABASE_HXX
11 #define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_DATABASE_HXX
12 
13 #include "opbase.hxx"
14 
15 namespace sc::opencl {
16 
17 class OpDmax: public CheckVariables
18 {
19 public:
20  virtual void GenSlidingWindowFunction(std::stringstream &ss,
21  const std::string &sSymName, SubArguments &vSubArguments) override;
22  virtual std::string BinFuncName() const override { return "Dmax"; }
23 };
24 
25 class OpDmin: public CheckVariables
26 {
27 public:
28  virtual void GenSlidingWindowFunction(std::stringstream &ss,
29  const std::string &sSymName, SubArguments &vSubArguments) override;
30  virtual std::string BinFuncName() const override { return "Dmin"; }
31 };
32 
34 {
35 public:
36  virtual void GenSlidingWindowFunction(std::stringstream &ss,
37  const std::string &sSymName, SubArguments &vSubArguments) override;
38  virtual std::string BinFuncName() const override { return "Dproduct"; }
39 };
40 
42 {
43 public:
44  virtual void GenSlidingWindowFunction(std::stringstream &ss,
45  const std::string &sSymName, SubArguments &vSubArguments) override;
46  virtual std::string BinFuncName() const override { return "Daverage"; }
47 };
48 
49 class OpDstdev: public CheckVariables
50 {
51 public:
52  virtual void GenSlidingWindowFunction(std::stringstream &ss,
53  const std::string &sSymName, SubArguments &vSubArguments) override;
54  virtual std::string BinFuncName() const override { return "Dstdev"; }
55 };
56 
58 {
59 public:
60  virtual void GenSlidingWindowFunction(std::stringstream &ss,
61  const std::string &sSymName, SubArguments &vSubArguments) override;
62  virtual std::string BinFuncName() const override { return "Dstdevp"; }
63 };
64 
65 class OpDsum: public CheckVariables
66 {
67 public:
68  virtual void GenSlidingWindowFunction(std::stringstream &ss,
69  const std::string &sSymName, SubArguments &vSubArguments) override;
70  virtual std::string BinFuncName() const override { return "Dsum"; }
71 };
72 
73 class OpDvar: public CheckVariables
74 {
75 public:
76  virtual void GenSlidingWindowFunction(std::stringstream &ss,
77  const std::string &sSymName, SubArguments &vSubArguments) override;
78  virtual std::string BinFuncName() const override { return "Dvar"; }
79 };
80 
81 class OpDvarp: public CheckVariables
82 {
83 public:
84  virtual void GenSlidingWindowFunction(std::stringstream &ss,
85  const std::string &sSymName, SubArguments &vSubArguments) override;
86  virtual std::string BinFuncName() const override { return "Dvarp"; }
87 };
88 
89 class OpDcount: public CheckVariables
90 {
91 public:
92  virtual void GenSlidingWindowFunction(std::stringstream &ss,
93  const std::string &sSymName, SubArguments &vSubArguments) override;
94  virtual std::string BinFuncName() const override { return "Dcount"; }
95 };
96 
98 {
99 public:
100  virtual void GenSlidingWindowFunction(std::stringstream &ss,
101  const std::string &sSymName, SubArguments &vSubArguments) override;
102  virtual std::string BinFuncName() const override { return "Dcount2"; }
103 };
104 
105 }
106 
107 #endif
108 
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual std::string BinFuncName() const override
Definition: op_database.hxx:30
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:70
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:86
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:38
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:46
virtual std::string BinFuncName() const override
Definition: op_database.hxx:78
std::vector< DynamicKernelArgumentRef > SubArguments
Definition: opbase.hxx:215
Arguments that are actually compile-time constant string Currently, only the hash is passed...
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:94
virtual std::string BinFuncName() const override
Definition: op_database.hxx:62
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
Definition: op_database.cxx:17
virtual std::string BinFuncName() const override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:22
virtual std::string BinFuncName() const override
Definition: op_database.hxx:54