Qt 4.8
|
The QScriptDebuggerValue class represents a script value. More...
#include <qscriptdebuggervalue_p.h>
Public Types | |
enum | ValueType { NoValue, UndefinedValue, NullValue, BooleanValue, StringValue, NumberValue, ObjectValue } |
Public Functions | |
bool | booleanValue () const |
Returns this value as a boolean. More... | |
double | numberValue () const |
Returns this value as a number. More... | |
qint64 | objectId () const |
Returns this value as an object ID. More... | |
bool | operator!= (const QScriptDebuggerValue &other) const |
Returns true if this QScriptDebuggerValue is not equal to the other value, otherwise returns false. More... | |
QScriptDebuggerValue & | operator= (const QScriptDebuggerValue &other) |
bool | operator== (const QScriptDebuggerValue &other) const |
Returns true if this QScriptDebuggerValue is equal to the other value, otherwise returns false. More... | |
QScriptDebuggerValue () | |
QScriptDebuggerValue (const QScriptValue &value) | |
QScriptDebuggerValue (double value) | |
QScriptDebuggerValue (bool value) | |
QScriptDebuggerValue (const QString &value) | |
QScriptDebuggerValue (qint64 objectId) | |
QScriptDebuggerValue (ValueType type) | |
QScriptDebuggerValue (const QScriptDebuggerValue &other) | |
QString | stringValue () const |
Returns this value as a string. More... | |
QScriptValue | toScriptValue (QScriptEngine *engine) const |
Converts this QScriptDebuggerValue to a QScriptValue in the given engine and returns the resulting value. More... | |
QString | toString () const |
Returns a string representation of this value. More... | |
ValueType | type () const |
Returns the type of this value. More... | |
~QScriptDebuggerValue () | |
Properties | |
QScopedSharedPointer< QScriptDebuggerValuePrivate > | d_ptr |
Related Functions | |
(Note that these are not member functions.) | |
QDataStream & | operator<< (QDataStream &stream, const QScriptDebuggerValue &value) |
Writes the given value to the specified stream. More... | |
QDataStream & | operator>> (QDataStream &stream, QScriptDebuggerValue &value) |
Reads a QScriptDebuggerValue from the specified stream into the given value. More... | |
The QScriptDebuggerValue class represents a script value.
Definition at line 67 of file qscriptdebuggervalue_p.h.
Enumerator | |
---|---|
NoValue | |
UndefinedValue | |
NullValue | |
BooleanValue | |
StringValue | |
NumberValue | |
ObjectValue |
Definition at line 70 of file qscriptdebuggervalue_p.h.
QScriptDebuggerValue::QScriptDebuggerValue | ( | ) |
Definition at line 91 of file qscriptdebuggervalue.cpp.
Referenced by operator>>().
QScriptDebuggerValue::QScriptDebuggerValue | ( | const QScriptValue & | value | ) |
Definition at line 96 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | double | value | ) |
Definition at line 123 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | bool | value | ) |
Definition at line 131 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | const QString & | value | ) |
Definition at line 139 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | qint64 | objectId | ) |
Definition at line 147 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | ValueType | type | ) |
Definition at line 155 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::QScriptDebuggerValue | ( | const QScriptDebuggerValue & | other | ) |
Definition at line 162 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::~QScriptDebuggerValue | ( | ) |
Definition at line 169 of file qscriptdebuggervalue.cpp.
bool QScriptDebuggerValue::booleanValue | ( | ) | const |
Returns this value as a boolean.
Definition at line 205 of file qscriptdebuggervalue.cpp.
Referenced by operator<<().
double QScriptDebuggerValue::numberValue | ( | ) | const |
Returns this value as a number.
Definition at line 193 of file qscriptdebuggervalue.cpp.
Referenced by operator<<().
qint64 QScriptDebuggerValue::objectId | ( | ) | const |
Returns this value as an object ID.
Definition at line 229 of file qscriptdebuggervalue.cpp.
Referenced by operator<<(), and QScriptDebuggerValue().
bool QScriptDebuggerValue::operator!= | ( | const QScriptDebuggerValue & | other | ) | const |
Returns true if this QScriptDebuggerValue is not equal to the other value, otherwise returns false.
Definition at line 331 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue & QScriptDebuggerValue::operator= | ( | const QScriptDebuggerValue & | other | ) |
Definition at line 173 of file qscriptdebuggervalue.cpp.
bool QScriptDebuggerValue::operator== | ( | const QScriptDebuggerValue & | other | ) | const |
Returns true if this QScriptDebuggerValue is equal to the other value, otherwise returns false.
Definition at line 300 of file qscriptdebuggervalue.cpp.
QString QScriptDebuggerValue::stringValue | ( | ) | const |
Returns this value as a string.
Definition at line 217 of file qscriptdebuggervalue.cpp.
Referenced by operator<<().
QScriptValue QScriptDebuggerValue::toScriptValue | ( | QScriptEngine * | engine | ) | const |
Converts this QScriptDebuggerValue to a QScriptValue in the given engine and returns the resulting value.
Definition at line 242 of file qscriptdebuggervalue.cpp.
Referenced by QScriptDebuggerCommandExecutor::execute().
QString QScriptDebuggerValue::toString | ( | ) | const |
Returns a string representation of this value.
Definition at line 269 of file qscriptdebuggervalue.cpp.
QScriptDebuggerValue::ValueType QScriptDebuggerValue::type | ( | ) | const |
Returns the type of this value.
Definition at line 182 of file qscriptdebuggervalue.cpp.
Referenced by QScriptDebuggerLocalsModel::canFetchMore(), QScriptDebuggerLocalsModel::data(), QScriptDebuggerPrivate::debuggerEvent(), QScriptDebuggerLocalsModel::hasChildren(), operator<<(), operator>>(), QScriptDebuggerLocalsModelPrivate::populateIndex(), QScriptDebuggerValue(), and QScriptDebuggerLocalsModelPrivate::repopulate().
|
related |
Writes the given value to the specified stream.
Definition at line 345 of file qscriptdebuggervalue.cpp.
|
related |
Reads a QScriptDebuggerValue from the specified stream into the given value.
Definition at line 379 of file qscriptdebuggervalue.cpp.
|
private |
Definition at line 106 of file qscriptdebuggervalue_p.h.
Referenced by operator=(), and QScriptDebuggerValue().