Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
kjs
kjs
kjs
operations.h
1
/*
2
* This file is part of the KDE libraries
3
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Library General Public
7
* License as published by the Free Software Foundation; either
8
* version 2 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Library General Public License for more details.
14
*
15
* You should have received a copy of the GNU Library General Public License
16
* along with this library; see the file COPYING.LIB. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
19
*
20
*/
21
22
#ifndef _KJS_OPERATIONS_H_
23
#define _KJS_OPERATIONS_H_
24
25
#include "value.h"
26
27
namespace
KJS {
28
29
class
ExecState
;
30
34
bool
isNaN(
double
d);
38
bool
isInf(
double
d);
39
bool
isPosInf(
double
d);
40
bool
isNegInf(
double
d);
41
bool
equal(
ExecState
*exec,
const
Value
& v1,
const
Value
& v2);
42
bool
strictEqual(
ExecState
*exec,
const
Value
&v1,
const
Value
&v2);
51
int
relation(
ExecState
*exec,
const
Value
& v1,
const
Value
& v2);
52
int
maxInt(
int
d1,
int
d2);
53
int
minInt(
int
d1,
int
d2);
63
Value
add(
ExecState
*exec,
const
Value
&v1,
const
Value
&v2,
char
oper);
74
Value
mult(
ExecState
*exec,
const
Value
&v1,
const
Value
&v2,
char
oper);
75
76
}
77
78
#endif
KJS::ExecState
Represents the current state of script execution.
Definition
interpreter.h:438
KJS::Value
Value objects are act as wrappers ("smart pointers") around ValueImp objects and their descendents.
Definition
value.h:167
kjs
Skip menu "kjs"
Main Page
Class Hierarchy
Alphabetical List
Class List
File List
Class Members
Related Pages
kjs
Skip menu "kjs"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdefile
tdeio
tdeioexec
tdeioslave
http
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet