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

kjs

  • KJS
  • Reference
Public Member Functions | Static Public Member Functions | Friends | List of all members
KJS::Reference Class Reference

#include <reference.h>

Inheritance diagram for KJS::Reference:
KJS::Value

Public Member Functions

 Reference (const Object &b, const Identifier &p)
 
 Reference (const Object &b, unsigned p)
 
 Reference (ObjectImp *b, const Identifier &p)
 
 Reference (ObjectImp *b, unsigned p)
 
 Reference (const Null &b, const Identifier &p)
 
 Reference (const Null &b, unsigned p)
 
Value getBase (ExecState *exec) const
 
Identifier getPropertyName (ExecState *exec) const
 
Value getValue (ExecState *exec) const
 
void putValue (ExecState *exec, const Value &w)
 
bool deleteValue (ExecState *exec)
 
bool isMutable ()
 
- Public Member Functions inherited from KJS::Value
 Value (ValueImp *v)
 
 Value (const Value &v)
 
Value & operator= (const Value &v)
 
bool isValid () const
 
bool isNull () const
 
ValueImp * imp () const
 
Type type () const
 
bool isA (Type t) const
 
Value toPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const
 
bool toBoolean (ExecState *exec) const
 
double toNumber (ExecState *exec) const
 
int toInteger (ExecState *exec) const
 
int toInt32 (ExecState *exec) const
 
unsigned int toUInt32 (ExecState *exec) const
 
unsigned short toUInt16 (ExecState *exec) const
 
UString toString (ExecState *exec) const
 
Object toObject (ExecState *exec) const
 
bool toUInt32 (unsigned &i) const
 

Static Public Member Functions

static Reference makeValueReference (const Value &v)
 

Friends

class ReferenceList
 
class ReferenceListIterator
 

Additional Inherited Members

- Protected Attributes inherited from KJS::Value
ValueImp * rep
 

Detailed Description

Defines a Javascript reference.

Definition at line 34 of file reference.h.

Constructor & Destructor Documentation

◆ Reference() [1/6]

Reference::Reference ( const Object &  b,
const Identifier &  p 
)

Definition at line 32 of file reference.cpp.

◆ Reference() [2/6]

Reference::Reference ( const Object &  b,
unsigned  p 
)

Definition at line 40 of file reference.cpp.

◆ Reference() [3/6]

Reference::Reference ( ObjectImp *  b,
const Identifier &  p 
)

Definition at line 48 of file reference.cpp.

◆ Reference() [4/6]

Reference::Reference ( ObjectImp *  b,
unsigned  p 
)

Definition at line 56 of file reference.cpp.

◆ Reference() [5/6]

Reference::Reference ( const Null &  b,
const Identifier &  p 
)

Definition at line 64 of file reference.cpp.

◆ Reference() [6/6]

Reference::Reference ( const Null &  b,
unsigned  p 
)

Definition at line 72 of file reference.cpp.

Member Function Documentation

◆ deleteValue()

bool Reference::deleteValue ( ExecState *  exec)

Definition at line 167 of file reference.cpp.

◆ getBase()

Value Reference::getBase ( ExecState *  exec) const

Performs the GetBase type conversion operation on this value (ECMA 8.7)

Since references are supposed to have an Object or null as their base, this method is guaranteed to return either Null() or an Object value.

Definition at line 92 of file reference.cpp.

◆ getPropertyName()

Identifier Reference::getPropertyName ( ExecState *  exec) const

Performs the GetPropertyName type conversion operation on this value (ECMA 8.7)

Definition at line 103 of file reference.cpp.

◆ getValue()

Value Reference::getValue ( ExecState *  exec) const

Performs the GetValue type conversion operation on this value (ECMA 8.7.1)

Definition at line 117 of file reference.cpp.

◆ isMutable()

bool Reference::isMutable ( )

Definition at line 189 of file reference.cpp.

◆ makeValueReference()

Reference Reference::makeValueReference ( const Value &  v)
static

Definition at line 80 of file reference.cpp.

◆ putValue()

void Reference::putValue ( ExecState *  exec,
const Value &  w 
)

Performs the PutValue type conversion operation on this value (ECMA 8.7.1)

Definition at line 145 of file reference.cpp.

Friends And Related Function Documentation

◆ ReferenceList

friend class ReferenceList
friend

Definition at line 37 of file reference.h.

◆ ReferenceListIterator

friend class ReferenceListIterator
friend

Definition at line 38 of file reference.h.


The documentation for this class was generated from the following files:
  • reference.h
  • reference.cpp

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.