kjs Library API Documentation

reference.h

00001 // -*- c-basic-offset: 2 -*- 00002 /* 00003 * This file is part of the KDE libraries 00004 * Copyright (C) 2003 Apple Computer, Inc 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Library General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Library General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Library General Public License 00017 * along with this library; see the file COPYING.LIB. If not, write to 00018 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00019 * Boston, MA 02111-1307, USA. 00020 * 00021 */ 00022 00023 #ifndef _KJS_REFERENCE_H_ 00024 #define _KJS_REFERENCE_H_ 00025 00026 #include "identifier.h" 00027 #include "value.h" 00028 00029 namespace KJS { 00030 00031 // delme 00032 class Reference : public Value { 00033 // fixme 00034 /* class Reference : private Value { */ 00035 friend class ReferenceList; 00036 friend class ReferenceListIterator; 00037 public: 00038 Reference(const Object& b, const Identifier& p); 00039 Reference(const Object& b, unsigned p); 00040 Reference(ObjectImp *b, const Identifier& p); 00041 Reference(ObjectImp *b, unsigned p); 00042 Reference(const Null& b, const Identifier& p); 00043 Reference(const Null& b, unsigned p); 00044 static Reference makeValueReference(const Value& v); 00045 00052 Value getBase(ExecState *exec) const; 00053 00058 Identifier getPropertyName(ExecState *exec) const; 00059 00064 Value getValue(ExecState *exec) const; 00065 00070 void putValue(ExecState *exec, const Value &w); 00071 bool deleteValue(ExecState *exec); 00072 00073 bool isMutable(); 00074 00075 private: 00076 Reference(); 00077 00078 Value base; 00079 unsigned propertyNameAsNumber; 00080 bool baseIsValue; 00081 bool propertyNameIsNumber; 00082 mutable Identifier prop; 00083 }; 00084 } 00085 00086 #endif
KDE Logo
This file is part of the documentation for kjs Library Version 3.2.3.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 8 11:14:43 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003