Qt 4.8
Public Functions | Public Variables | Private Functions | Properties | Friends | List of all members
QScriptDeclarativeClass::PersistentIdentifier Class Reference

#include <qscriptdeclarativeclass_p.h>

Inheritance diagram for QScriptDeclarativeClass::PersistentIdentifier:
QDeclarativeIntegerCache::Data

Public Functions

PersistentIdentifieroperator= (const PersistentIdentifier &other)
 
 PersistentIdentifier ()
 
 PersistentIdentifier (const PersistentIdentifier &other)
 
QString toString () const
 
 ~PersistentIdentifier ()
 

Public Variables

Identifier identifier
 

Private Functions

 PersistentIdentifier (QScriptEnginePrivate *e)
 

Properties

void * d
 
QScriptEnginePrivateengine
 

Friends

class QScriptDeclarativeClass
 

Detailed Description

Definition at line 100 of file qscriptdeclarativeclass_p.h.

Constructors and Destructors

◆ PersistentIdentifier() [1/3]

QScriptDeclarativeClass::PersistentIdentifier::PersistentIdentifier ( )

◆ ~PersistentIdentifier()

QScriptDeclarativeClass::PersistentIdentifier::~PersistentIdentifier ( )

Definition at line 159 of file qscriptdeclarativeclass.cpp.

160 {
161  if (engine) {
162  QScript::APIShim shim(engine);
163  ((JSC::Identifier &)d).JSC::Identifier::~Identifier();
164  } else {
165  ((JSC::Identifier &)d).JSC::Identifier::~Identifier();
166  }
167 }

◆ PersistentIdentifier() [2/3]

QScriptDeclarativeClass::PersistentIdentifier::PersistentIdentifier ( const PersistentIdentifier other)

Definition at line 169 of file qscriptdeclarativeclass.cpp.

170 {
171  identifier = other.identifier;
172  engine = other.engine;
173  new (&d) JSC::Identifier((JSC::Identifier &)(other.d));
174 }

◆ PersistentIdentifier() [3/3]

QScriptDeclarativeClass::PersistentIdentifier::PersistentIdentifier ( QScriptEnginePrivate e)
inlineprivate

Functions

◆ operator=()

QScriptDeclarativeClass::PersistentIdentifier & QScriptDeclarativeClass::PersistentIdentifier::operator= ( const PersistentIdentifier other)

Definition at line 177 of file qscriptdeclarativeclass.cpp.

178 {
179  identifier = other.identifier;
180  engine = other.engine;
181  ((JSC::Identifier &)d) = (JSC::Identifier &)(other.d);
182  return *this;
183 }

◆ toString()

QString QScriptDeclarativeClass::PersistentIdentifier::toString ( ) const

Definition at line 185 of file qscriptdeclarativeclass.cpp.

186 {
187  return ((JSC::Identifier &)d).ustring();
188 }

Friends and Related Functions

◆ QScriptDeclarativeClass

Definition at line 112 of file qscriptdeclarativeclass_p.h.

Properties

◆ d

void* QScriptDeclarativeClass::PersistentIdentifier::d
private

◆ engine

QScriptEnginePrivate* QScriptDeclarativeClass::PersistentIdentifier::engine
private

◆ identifier

Identifier QScriptDeclarativeClass::PersistentIdentifier::identifier

The documentation for this class was generated from the following files: