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