• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kjs
 

kjs

  • kjs
reference.h
1 // -*- c-basic-offset: 2 -*-
2 /*
3  * This file is part of the KDE libraries
4  * Copyright (C) 2003 Apple Computer, Inc
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #ifndef _KJS_REFERENCE_H_
24 #define _KJS_REFERENCE_H_
25 
26 #include "identifier.h"
27 #include "value.h"
28 
29 namespace KJS {
30 
31 // delme
35  class KJS_EXPORT Reference : public Value {
36 // fixme
37 /* class Reference : private Value { */
38  friend class ReferenceList;
39  friend class ReferenceListIterator;
40  public:
41  Reference(const Object& b, const Identifier& p);
42  Reference(const Object& b, unsigned p);
43  Reference(ObjectImp *b, const Identifier& p);
44  Reference(ObjectImp *b, unsigned p);
45  Reference(const Null& b, const Identifier& p);
46  Reference(const Null& b, unsigned p);
47  static Reference makeValueReference(const Value& v);
48 
55  Value getBase(ExecState *exec) const;
56 
61  Identifier getPropertyName(ExecState *exec) const;
62 
67  Value getValue(ExecState *exec) const;
68 
73  void putValue(ExecState *exec, const Value &w);
74  bool deleteValue(ExecState *exec);
75 
76  bool isMutable();
77 
78  private:
79  Reference();
80 
81  Value base;
82  unsigned propertyNameAsNumber;
83  bool baseIsValue;
84  bool propertyNameIsNumber;
85  mutable Identifier prop;
86  };
87 }
88 
89 #endif

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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kjs by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |