reference.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 _KJS_REFERENCE_H_
00024
#define _KJS_REFERENCE_H_
00025
00026
#include "identifier.h"
00027
#include "value.h"
00028
00029
namespace KJS {
00030
00031
00035 class KJS_EXPORT Reference :
public Value {
00036
00037
00038
friend class ReferenceList;
00039
friend class ReferenceListIterator;
00040
public:
00041 Reference(
const Object& b,
const Identifier& p);
00042 Reference(
const Object& b,
unsigned p);
00043 Reference(ObjectImp *b,
const Identifier& p);
00044 Reference(ObjectImp *b,
unsigned p);
00045 Reference(
const Null& b,
const Identifier& p);
00046 Reference(
const Null& b,
unsigned p);
00047
static Reference makeValueReference(
const Value& v);
00048
00055
Value getBase(
ExecState *exec)
const;
00056
00061
Identifier getPropertyName(
ExecState *exec)
const;
00062
00067
Value getValue(
ExecState *exec)
const;
00068
00073
void putValue(
ExecState *exec,
const Value &w);
00074
bool deleteValue(
ExecState *exec);
00075
00076
bool isMutable();
00077
00078
private:
00079 Reference();
00080
00081
Value base;
00082
unsigned propertyNameAsNumber;
00083
bool baseIsValue;
00084
bool propertyNameIsNumber;
00085
mutable Identifier prop;
00086 };
00087 }
00088
00089
#endif
This file is part of the documentation for kjs Library Version 3.4.0.