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