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

kjs

  • KJS
  • ValueImp
Public Member Functions | Public Attributes | Friends | List of all members
KJS::ValueImp Class Referenceabstract

#include <value.h>

Inherited by KJS::BooleanImp, KJS::NullImp, KJS::NumberImp, KJS::ObjectImp, KJS::StringImp, and KJS::UndefinedImp.

Public Member Functions

ValueImp * ref ()
 
bool deref ()
 
virtual void mark ()
 
bool marked () const
 
void * operator new (size_t)
 
void operator delete (void *)
 
void setGcAllowed ()
 
void setGcAllowedFast ()
 
int toInteger (ExecState *exec) const
 
int toInt32 (ExecState *exec) const
 
unsigned int toUInt32 (ExecState *exec) const
 
unsigned short toUInt16 (ExecState *exec) const
 
Type dispatchType () const
 
Value dispatchToPrimitive (ExecState *exec, Type preferredType=UnspecifiedType) const
 
bool dispatchToBoolean (ExecState *exec) const
 
double dispatchToNumber (ExecState *exec) const
 
UString dispatchToString (ExecState *exec) const
 
bool dispatchToUInt32 (unsigned &) const
 
Object dispatchToObject (ExecState *exec) const
 
bool isDestroyed () const
 

Public Attributes

unsigned short int refcount
 

Friends

class Collector
 
class Value
 
class ContextImp
 

Detailed Description

ValueImp is the base type for all primitives (Undefined, Null, Boolean, String, Number) and objects in ECMAScript.

Note: you should never inherit from ValueImp as it is for primitive types only (all of which are provided internally by KJS). Instead, inherit from ObjectImp.

Definition at line 78 of file value.h.

Constructor & Destructor Documentation

◆ ValueImp()

ValueImp::ValueImp ( )

Definition at line 46 of file value.cpp.

◆ ~ValueImp()

ValueImp::~ValueImp ( )
virtual

Definition at line 54 of file value.cpp.

Member Function Documentation

◆ deref()

bool KJS::ValueImp::deref ( )
inline

Definition at line 87 of file value.h.

◆ dispatchToBoolean()

bool ValueImp::dispatchToBoolean ( ExecState *  exec) const

Definition at line 183 of file value.cpp.

◆ dispatchToNumber()

double ValueImp::dispatchToNumber ( ExecState *  exec) const

Definition at line 190 of file value.cpp.

◆ dispatchToObject()

Object ValueImp::dispatchToObject ( ExecState *  exec) const

Definition at line 204 of file value.cpp.

◆ dispatchToPrimitive()

Value ValueImp::dispatchToPrimitive ( ExecState *  exec,
Type  preferredType = UnspecifiedType 
) const

Definition at line 176 of file value.cpp.

◆ dispatchToString()

UString ValueImp::dispatchToString ( ExecState *  exec) const

Definition at line 197 of file value.cpp.

◆ dispatchToUInt32()

bool ValueImp::dispatchToUInt32 ( unsigned &  result) const

Definition at line 211 of file value.cpp.

◆ dispatchType()

Type ValueImp::dispatchType ( ) const

Definition at line 169 of file value.cpp.

◆ isDestroyed()

bool KJS::ValueImp::isDestroyed ( ) const
inline

Definition at line 121 of file value.h.

◆ mark()

void ValueImp::mark ( )
virtual

Definition at line 60 of file value.cpp.

◆ marked()

bool ValueImp::marked ( ) const

Definition at line 66 of file value.cpp.

◆ operator delete()

void ValueImp::operator delete ( void *  )

Definition at line 86 of file value.cpp.

◆ operator new()

void * ValueImp::operator new ( size_t  s)

Definition at line 81 of file value.cpp.

◆ ref()

ValueImp * KJS::ValueImp::ref ( )
inline

Definition at line 86 of file value.h.

◆ setGcAllowed()

void ValueImp::setGcAllowed ( )

Definition at line 72 of file value.cpp.

◆ setGcAllowedFast()

void KJS::ValueImp::setGcAllowedFast ( )
inline

Definition at line 102 of file value.h.

◆ toInt32()

int ValueImp::toInt32 ( ExecState *  exec) const

Definition at line 108 of file value.cpp.

◆ toInteger()

int ValueImp::toInteger ( ExecState *  exec) const

Definition at line 97 of file value.cpp.

◆ toUInt16()

unsigned short ValueImp::toUInt16 ( ExecState *  exec) const

Definition at line 152 of file value.cpp.

◆ toUInt32()

unsigned int ValueImp::toUInt32 ( ExecState *  exec) const

Definition at line 130 of file value.cpp.

Friends And Related Function Documentation

◆ Collector

friend class Collector
friend

Definition at line 79 of file value.h.

◆ ContextImp

friend class ContextImp
friend

Definition at line 81 of file value.h.

◆ Value

friend class Value
friend

Definition at line 80 of file value.h.

Member Data Documentation

◆ refcount

unsigned short int KJS::ValueImp::refcount

Definition at line 119 of file value.h.


The documentation for this class was generated from the following files:
  • value.h
  • value.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.