Changeset 798 in webkit for trunk/JavaScriptCore/kjs/math_object.h
- Timestamp:
- Mar 21, 2002, 4:31:57 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/math_object.h
r6 r798 1 // -*- c-basic-offset: 2 -*- 1 2 /* 2 3 * This file is part of the KDE libraries … … 16 17 * License along with this library; if not, write to the Free Software 17 18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 * 20 * $Id$ 18 21 */ 19 22 … … 21 24 #define _MATH_OBJECT_H_ 22 25 23 #include " object.h"24 #include "function .h"26 #include "internal.h" 27 #include "function_object.h" 25 28 26 29 namespace KJS { 27 30 28 class Math : public ObjectImp {31 class MathObjectImp : public ObjectImp { 29 32 public: 30 Math() : ObjectImp(BooleanClass) { } 31 virtual KJSO get(const UString &p) const; 32 virtual bool hasProperty(const UString &p, bool recursive = true) const; 33 MathObjectImp(ExecState *exec, 34 ObjectPrototypeImp *objProto); 35 Value get(ExecState *exec, const UString &p) const; 36 Value getValueProperty(ExecState *exec, int token) const; 37 virtual const ClassInfo *classInfo() const { return &info; } 38 static const ClassInfo info; 33 39 enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2, 34 35 40 Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Pow, 41 Exp, Floor, Log, Max, Min, Random, Round, Sin, Sqrt, Tan }; 36 42 }; 37 43 38 class MathFunc : public InternalFunctionImp {44 class MathFuncImp : public InternalFunctionImp { 39 45 public: 40 MathFunc(int i, int l) : InternalFunctionImp(l), id(i) { } 41 Completion execute(const List &); 46 MathFuncImp(ExecState *exec, int i, int l); 47 virtual bool implementsCall() const; 48 virtual Value call(ExecState *exec, Object &thisObj, const List &args); 42 49 private: 43 50 int id;
Note:
See TracChangeset
for help on using the changeset viewer.