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

kjs

  • kjs
reference.h
1/*
2 * This file is part of the KDE libraries
3 * Copyright (C) 2003 Apple Computer, Inc
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_REFERENCE_H_
23#define _KJS_REFERENCE_H_
24
25#include "identifier.h"
26#include "value.h"
27
28namespace KJS {
29
30// delme
34 class KJS_EXPORT Reference : public Value {
35// fixme
36/* class Reference : private Value { */
37 friend class ReferenceList;
38 friend class ReferenceListIterator;
39 public:
40 Reference(const Object& b, const Identifier& p);
41 Reference(const Object& b, unsigned p);
42 Reference(ObjectImp *b, const Identifier& p);
43 Reference(ObjectImp *b, unsigned p);
44 Reference(const Null& b, const Identifier& p);
45 Reference(const Null& b, unsigned p);
46 static Reference makeValueReference(const Value& v);
47
54 Value getBase(ExecState *exec) const;
55
60 Identifier getPropertyName(ExecState *exec) const;
61
66 Value getValue(ExecState *exec) const;
67
72 void putValue(ExecState *exec, const Value &w);
73 bool deleteValue(ExecState *exec);
74
75 bool isMutable();
76
77 private:
78 Reference();
79
80 Value base;
81 unsigned propertyNameAsNumber;
82 bool baseIsValue;
83 bool propertyNameIsNumber;
84 mutable Identifier prop;
85 };
86}
87
88#endif
KJS::ExecState
Represents the current state of script execution.
Definition: interpreter.h:438
KJS::Identifier
Represents an Identifier for a Javascript object.
Definition: identifier.h:32
KJS::Null
Represents an primitive Null value.
Definition: value.h:294
KJS::Object
Represents an Object.
Definition: object.h:81
KJS::ReferenceListIterator
An iterator for a ReferenceList.
Definition: reference_list.h:36
KJS::ReferenceList
A list of Reference objects.
Definition: reference_list.h:53
KJS::Reference
Defines a Javascript reference.
Definition: reference.h:34
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
Generated for kjs by doxygen 1.9.4
This website is maintained by Timothy Pearson.