LibreOffice Module connectivity (master) 1
FNumericFunctions.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 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <file/fcode.hxx>
23
24namespace connectivity::file
25 {
35 class OOp_Abs : public OUnaryOperator
36 {
37 protected:
38 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
39 };
40
52 class OOp_Sign : public OUnaryOperator
53 {
54 protected:
55 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
56 };
57
71 class OOp_Mod : public OBinaryOperator
72 {
73 protected:
74 virtual ORowSetValue operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const override;
75 };
76
87 {
88 protected:
89 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
90 };
91
102 {
103 protected:
104 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
105 };
106
124 class OOp_Round : public ONthOperator
125 {
126 protected:
127 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
128 };
129
138 class OOp_Exp : public OUnaryOperator
139 {
140 protected:
141 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
142 };
143
153 class OOp_Ln : public OUnaryOperator
154 {
155 protected:
156 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
157 };
158
175 class OOp_Log : public ONthOperator
176 {
177 protected:
178 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
179 };
180
192 {
193 protected:
194 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
195 };
196
206 {
207 protected:
208 virtual ORowSetValue operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const override;
209 };
210
220 {
221 protected:
222 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
223 };
224
234 class OOp_Pi : public ONthOperator
235 {
236 protected:
237 virtual ORowSetValue operate(const std::vector<ORowSetValue>& lhs) const override;
238 };
239
246 class OOp_Cos : public OUnaryOperator
247 {
248 protected:
249 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
250 };
251
259 class OOp_Sin : public OUnaryOperator
260 {
261 protected:
262 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
263 };
270 class OOp_Tan : public OUnaryOperator
271 {
272 protected:
273 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
274 };
275
287 {
288 protected:
289 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
290 };
291
301 {
302 protected:
303 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
304 };
305
315 {
316 protected:
317 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
318 };
319
330 {
331 protected:
332 virtual ORowSetValue operate(const ORowSetValue& lhs,const ORowSetValue& rhs) const override;
333 };
334
342 {
343 protected:
344 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
345 };
346
355 {
356 protected:
357 virtual ORowSetValue operate(const ORowSetValue& lhs) const override;
358 };
359
360}
361
362/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ACOS(X) Returns the arc cosine of X, that is, the value whose cosine is X.
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
ASIN(X) Returns the arc sine of X, that is, the value whose sine is X.
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
ATAN2(Y,X) Returns the arc tangent of the two variables X and Y.
virtual ORowSetValue operate(const ORowSetValue &lhs, const ORowSetValue &rhs) const override
ATAN(X) Returns the arc tangent of X, that is, the value whose tangent is X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
ABS(X) Returns the absolute value of X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
CEILING(X) Returns the smallest integer value not less than X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
COS(X) Returns the cosine of X, where X is given in radians:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
DEGREES(X) Returns the argument X, converted from radians to degrees:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
EXP(X) Returns the value of e (the base of natural logarithms) raised to the power of X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
FLOOR(X) Returns the largest integer value not greater than X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
LN(X) Returns the natural logarithm of X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
LOG10(X) Returns the base-10 logarithm of X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
LOG(X) LOG(B,X) If called with one parameter, this function returns the natural logarithm of X:
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
MOD(N,M) % Modulo (like the % operator in C).
virtual ORowSetValue operate(const ORowSetValue &lhs, const ORowSetValue &rhs) const override
PI() Returns the value of PI.
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
POWER(X,Y) Returns the value of X raised to the power of Y:
virtual ORowSetValue operate(const ORowSetValue &lhs, const ORowSetValue &rhs) const override
RADIANS(X) Returns the argument X, converted from degrees to radians:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
ROUND(X) ROUND(X,D) Returns the argument X, rounded to the nearest integer.
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
SIGN(X) Returns the sign of the argument as -1, 0, or 1, depending on whether X is negative,...
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
SIN(X) Returns the sine of X, where X is given in radians:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
SQRT(X) Returns the non-negative square root of X:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
TAN(X) Returns the tangent of X, where X is given in radians:
virtual ORowSetValue operate(const ORowSetValue &lhs) const override