Ignore:
Timestamp:
Mar 21, 2002, 4:31:57 PM (23 years ago)
Author:
mjs
Message:

Merged changes from LABYRINTH_KDE_3_MERGE branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/math_object.h

    r6 r798  
     1// -*- c-basic-offset: 2 -*-
    12/*
    23 *  This file is part of the KDE libraries
     
    1617 *  License along with this library; if not, write to the Free Software
    1718 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     19 *
     20 *  $Id$
    1821 */
    1922
     
    2124#define _MATH_OBJECT_H_
    2225
    23 #include "object.h"
    24 #include "function.h"
     26#include "internal.h"
     27#include "function_object.h"
    2528
    2629namespace KJS {
    2730
    28   class Math : public ObjectImp {
     31  class MathObjectImp : public ObjectImp {
    2932  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;
    3339    enum { Euler, Ln2, Ln10, Log2E, Log10E, Pi, Sqrt1_2, Sqrt2,
    34            Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Pow,
    35            Exp, Floor, Log, Max, Min, Random, Round, Sin, Sqrt, Tan };
     40           Abs, ACos, ASin, ATan, ATan2, Ceil, Cos, Pow,
     41           Exp, Floor, Log, Max, Min, Random, Round, Sin, Sqrt, Tan };
    3642  };
    3743
    38   class MathFunc : public InternalFunctionImp {
     44  class MathFuncImp : public InternalFunctionImp {
    3945  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);
    4249  private:
    4350    int id;
Note: See TracChangeset for help on using the changeset viewer.