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 #pragma once
11 
12 #include "opbase.hxx"
13 
14 namespace sc::opencl {
15 
16 class OpDmax: public CheckVariables
17 {
18 public:
19  virtual void GenSlidingWindowFunction(std::stringstream &ss,
20  const std::string &sSymName, SubArguments &vSubArguments) override;
21  virtual std::string BinFuncName() const override { return "Dmax"; }
22 };
23 
24 class OpDmin: public CheckVariables
25 {
26 public:
27  virtual void GenSlidingWindowFunction(std::stringstream &ss,
28  const std::string &sSymName, SubArguments &vSubArguments) override;
29  virtual std::string BinFuncName() const override { return "Dmin"; }
30 };
31 
33 {
34 public:
35  virtual void GenSlidingWindowFunction(std::stringstream &ss,
36  const std::string &sSymName, SubArguments &vSubArguments) override;
37  virtual std::string BinFuncName() const override { return "Dproduct"; }
38 };
39 
41 {
42 public:
43  virtual void GenSlidingWindowFunction(std::stringstream &ss,
44  const std::string &sSymName, SubArguments &vSubArguments) override;
45  virtual std::string BinFuncName() const override { return "Daverage"; }
46 };
47 
48 class OpDstdev: public CheckVariables
49 {
50 public:
51  virtual void GenSlidingWindowFunction(std::stringstream &ss,
52  const std::string &sSymName, SubArguments &vSubArguments) override;
53  virtual std::string BinFuncName() const override { return "Dstdev"; }
54 };
55 
57 {
58 public:
59  virtual void GenSlidingWindowFunction(std::stringstream &ss,
60  const std::string &sSymName, SubArguments &vSubArguments) override;
61  virtual std::string BinFuncName() const override { return "Dstdevp"; }
62 };
63 
64 class OpDsum: public CheckVariables
65 {
66 public:
67  virtual void GenSlidingWindowFunction(std::stringstream &ss,
68  const std::string &sSymName, SubArguments &vSubArguments) override;
69  virtual std::string BinFuncName() const override { return "Dsum"; }
70 };
71 
72 class OpDvar: public CheckVariables
73 {
74 public:
75  virtual void GenSlidingWindowFunction(std::stringstream &ss,
76  const std::string &sSymName, SubArguments &vSubArguments) override;
77  virtual std::string BinFuncName() const override { return "Dvar"; }
78 };
79 
80 class OpDvarp: public CheckVariables
81 {
82 public:
83  virtual void GenSlidingWindowFunction(std::stringstream &ss,
84  const std::string &sSymName, SubArguments &vSubArguments) override;
85  virtual std::string BinFuncName() const override { return "Dvarp"; }
86 };
87 
88 class OpDcount: public CheckVariables
89 {
90 public:
91  virtual void GenSlidingWindowFunction(std::stringstream &ss,
92  const std::string &sSymName, SubArguments &vSubArguments) override;
93  virtual std::string BinFuncName() const override { return "Dcount"; }
94 };
95 
97 {
98 public:
99  virtual void GenSlidingWindowFunction(std::stringstream &ss,
100  const std::string &sSymName, SubArguments &vSubArguments) override;
101  virtual std::string BinFuncName() const override { return "Dcount2"; }
102 };
103 
104 }
105 
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual std::string BinFuncName() const override
Definition: op_database.hxx:29
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:69
virtual void GenSlidingWindowFunction(std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) override
virtual std::string BinFuncName() const override
Definition: op_database.hxx:85
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:37
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:45
virtual std::string BinFuncName() const override
Definition: op_database.hxx:77
std::vector< DynamicKernelArgumentRef > SubArguments
Definition: opbase.hxx:214
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:93
virtual std::string BinFuncName() const override
Definition: op_database.hxx:61
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:21
virtual std::string BinFuncName() const override
Definition: op_database.hxx:53