1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QV4MATHOBJECT_H
4#define QV4MATHOBJECT_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include "qv4object_p.h"
18
19QT_BEGIN_NAMESPACE
20
21namespace QV4 {
22
23namespace Heap {
24
25struct MathObject : Object {
26 void init();
27};
28
29}
30
31struct MathObject: Object
32{
33 V4_OBJECT2(MathObject, Object)
34 Q_MANAGED_TYPE(MathObject)
35
36 static ReturnedValue method_abs(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
37 static ReturnedValue method_acos(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
38 static ReturnedValue method_acosh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
39 static ReturnedValue method_asin(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
40 static ReturnedValue method_asinh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
41 static ReturnedValue method_atan(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
42 static ReturnedValue method_atanh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
43 static ReturnedValue method_atan2(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
44 static ReturnedValue method_cbrt(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
45 static ReturnedValue method_ceil(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
46 static ReturnedValue method_clz32(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
47 static ReturnedValue method_cos(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
48 static ReturnedValue method_cosh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
49 static ReturnedValue method_exp(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
50 static ReturnedValue method_expm1(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
51 static ReturnedValue method_floor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
52 static ReturnedValue method_fround(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
53 static ReturnedValue method_hypot(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
54 static ReturnedValue method_imul(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
55 static ReturnedValue method_log(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
56 static ReturnedValue method_log10(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
57 static ReturnedValue method_log1p(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
58 static ReturnedValue method_log2(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
59 static ReturnedValue method_max(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
60 static ReturnedValue method_min(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
61 static ReturnedValue method_pow(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
62 static ReturnedValue method_random(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
63 static ReturnedValue method_round(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
64 static ReturnedValue method_sign(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
65 static ReturnedValue method_sin(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
66 static ReturnedValue method_sinh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
67 static ReturnedValue method_sqrt(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
68 static ReturnedValue method_tan(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
69 static ReturnedValue method_tanh(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
70 static ReturnedValue method_trunc(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
71};
72
73}
74
75QT_END_NAMESPACE
76
77#endif // QMLJS_OBJECTS_H
78

source code of qtdeclarative/src/qml/jsruntime/qv4mathobject_p.h