math_object.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _MATH_OBJECT_H_
00024 #define _MATH_OBJECT_H_
00025
00026 #include "internal.h"
00027 #include "function_object.h"
00028
00029 namespace KJS {
00030
00031 class MathObjectImp : public ObjectImp {
00032 public:
00033 MathObjectImp(ExecState *exec,
00034 ObjectPrototypeImp *objProto);
00035 Value get(ExecState *exec, const UString &p) const;
00036 Value getValueProperty(ExecState *exec, int token) const;
00037 virtual const ClassInfo *classInfo() const { return &info; }
00038 static const ClassInfo info;
00039 enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2,
00040 Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Pow,
00041 Exp, Floor, Log, Max, Min, Random, Round, Sin, Sqrt, Tan };
00042 };
00043
00044 class MathFuncImp : public InternalFunctionImp {
00045 public:
00046 MathFuncImp(ExecState *exec, int i, int l);
00047 virtual bool implementsCall() const;
00048 virtual Value call(ExecState *exec, Object &thisObj, const List &args);
00049 private:
00050 int id;
00051 };
00052
00053 };
00054
00055 #endif
This file is part of the documentation for kdelibs Version 3.1.0.