Qt 4.8
Public Types | Public Functions | Static Public Functions | Public Variables | List of all members
QScriptStringPrivate Class Reference

#include <qscriptstring_p.h>

Public Types

enum  AllocationType { StackAllocated, HeapAllocated }
 

Public Functions

void detachFromEngine ()
 
 QScriptStringPrivate (QScriptEnginePrivate *engine, const JSC::Identifier &id, AllocationType type)
 
 ~QScriptStringPrivate ()
 

Static Public Functions

static QScriptStringPrivateget (const QScriptString &q)
 
static void init (QScriptString &q, QScriptStringPrivate *d)
 
static bool isValid (const QScriptString &q)
 

Public Variables

QScriptEnginePrivateengine
 
JSC::Identifier identifier
 
QScriptStringPrivatenext
 
QScriptStringPrivateprev
 
QBasicAtomicInt ref
 
AllocationType type
 

Detailed Description

Definition at line 45 of file qscriptstring_p.h.

Enumerations

◆ AllocationType

Enumerator
StackAllocated 
HeapAllocated 

Definition at line 48 of file qscriptstring_p.h.

Constructors and Destructors

◆ QScriptStringPrivate()

QScriptStringPrivate::QScriptStringPrivate ( QScriptEnginePrivate engine,
const JSC::Identifier &  id,
AllocationType  type 
)
inline

Definition at line 74 of file qscriptstring_p.h.

76  : engine(e), identifier(id), type(tp), prev(0), next(0)
77 {
78  ref = 0;
79 }
AllocationType type
QScriptEnginePrivate * engine
QScriptStringPrivate * prev
QScriptStringPrivate * next
JSC::Identifier identifier
QBasicAtomicInt ref

◆ ~QScriptStringPrivate()

QScriptStringPrivate::~QScriptStringPrivate ( )
inline

Definition at line 81 of file qscriptstring_p.h.

82 {
83 }

Functions

◆ detachFromEngine()

void QScriptStringPrivate::detachFromEngine ( )
inline

Definition at line 95 of file qscriptstring_p.h.

Referenced by QScriptEnginePrivate::detachAllRegisteredScriptStrings().

96 {
97  engine = 0;
98  identifier = JSC::Identifier();
99 }
QScriptEnginePrivate * engine
JSC::Identifier identifier

◆ get()

QScriptStringPrivate * QScriptStringPrivate::get ( const QScriptString q)
inlinestatic

Definition at line 90 of file qscriptstring_p.h.

Referenced by qHash().

91 {
92  return const_cast<QScriptStringPrivate*>(q.d_func());
93 }

◆ init()

void QScriptStringPrivate::init ( QScriptString q,
QScriptStringPrivate d 
)
inlinestatic

◆ isValid()

bool QScriptStringPrivate::isValid ( const QScriptString q)
inlinestatic

Definition at line 101 of file qscriptstring_p.h.

Referenced by QScriptString::isValid(), QScriptValue::property(), QScriptValue::propertyFlags(), and QScriptValue::setProperty().

102 {
103  return (q.d_ptr && q.d_ptr->engine);
104 }
QScriptEnginePrivate * engine
QExplicitlySharedDataPointer< QScriptStringPrivate > d_ptr
Definition: qscriptstring.h:58

Properties

◆ engine

QScriptEnginePrivate* QScriptStringPrivate::engine

Definition at line 65 of file qscriptstring_p.h.

Referenced by detachFromEngine(), and isValid().

◆ identifier

JSC::Identifier QScriptStringPrivate::identifier

◆ next

QScriptStringPrivate* QScriptStringPrivate::next

◆ prev

QScriptStringPrivate* QScriptStringPrivate::prev

◆ ref

QBasicAtomicInt QScriptStringPrivate::ref

Definition at line 64 of file qscriptstring_p.h.

Referenced by QScriptStringPrivate().

◆ type

AllocationType QScriptStringPrivate::type

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