Qt 4.8
Public Functions | Properties | Related Functions | List of all members
QScriptDebuggerValueProperty Class Reference

#include <qscriptdebuggervalueproperty_p.h>

Public Functions

QScriptValue::PropertyFlags flags () const
 Returns the flags of this QScriptDebuggerValueProperty. More...
 
bool isValid () const
 Returns true if this QScriptDebuggerValueProperty is valid, otherwise returns false. More...
 
QString name () const
 Returns the name of this QScriptDebuggerValueProperty. More...
 
QScriptDebuggerValuePropertyoperator= (const QScriptDebuggerValueProperty &other)
 Assigns the other property to this QScriptDebuggerValueProperty. More...
 
 QScriptDebuggerValueProperty ()
 Constructs an invalid QScriptDebuggerValueProperty. More...
 
 QScriptDebuggerValueProperty (const QString &name, const QScriptDebuggerValue &value, const QString &valueAsString, QScriptValue::PropertyFlags flags)
 Constructs a QScriptDebuggerValueProperty with the given name, value and flags. More...
 
 QScriptDebuggerValueProperty (const QScriptDebuggerValueProperty &other)
 Constructs a QScriptDebuggerValueProperty that is a copy of the other property. More...
 
QScriptDebuggerValue value () const
 Returns the value of this QScriptDebuggerValueProperty. More...
 
QString valueAsString () const
 
 ~QScriptDebuggerValueProperty ()
 Destroys this QScriptDebuggerValueProperty. More...
 

Properties

QScopedSharedPointer< QScriptDebuggerValuePropertyPrivated_ptr
 

Related Functions

(Note that these are not member functions.)

QDataStreamoperator<< (QDataStream &stream, const QScriptDebuggerValueProperty &property)
 Writes the given property to the specified stream. More...
 
QDataStreamoperator>> (QDataStream &stream, QScriptDebuggerValueProperty &property)
 Reads a QScriptDebuggerValueProperty from the specified stream into the given property. More...
 

Detailed Description

Warning
This function is not part of the public interface.

Definition at line 68 of file qscriptdebuggervalueproperty_p.h.

Constructors and Destructors

◆ QScriptDebuggerValueProperty() [1/3]

QScriptDebuggerValueProperty::QScriptDebuggerValueProperty ( )

Constructs an invalid QScriptDebuggerValueProperty.

Definition at line 83 of file qscriptdebuggervalueproperty.cpp.

Referenced by operator>>().

84  : d_ptr(0)
85 {
86 }
QScopedSharedPointer< QScriptDebuggerValuePropertyPrivate > d_ptr

◆ QScriptDebuggerValueProperty() [2/3]

QScriptDebuggerValueProperty::QScriptDebuggerValueProperty ( const QString name,
const QScriptDebuggerValue value,
const QString valueAsString,
QScriptValue::PropertyFlags  flags 
)

Constructs a QScriptDebuggerValueProperty with the given name, value and flags.

Definition at line 92 of file qscriptdebuggervalueproperty.cpp.

97 {
98  d_ptr->name = name;
99  d_ptr->value = value;
100  d_ptr->valueAsString = valueAsString;
101  d_ptr->flags = flags;
102  d_ptr->ref.ref();
103 }
QString name() const
Returns the name of this QScriptDebuggerValueProperty.
QScriptDebuggerValue value() const
Returns the value of this QScriptDebuggerValueProperty.
QScriptValue::PropertyFlags flags() const
Returns the flags of this QScriptDebuggerValueProperty.
QScopedSharedPointer< QScriptDebuggerValuePropertyPrivate > d_ptr

◆ QScriptDebuggerValueProperty() [3/3]

QScriptDebuggerValueProperty::QScriptDebuggerValueProperty ( const QScriptDebuggerValueProperty other)

Constructs a QScriptDebuggerValueProperty that is a copy of the other property.

Definition at line 108 of file qscriptdebuggervalueproperty.cpp.

109  : d_ptr(other.d_ptr.data())
110 {
111  if (d_ptr)
112  d_ptr->ref.ref();
113 }
T * data() const
Returns the value of the pointer referenced by this object.
QScopedSharedPointer< QScriptDebuggerValuePropertyPrivate > d_ptr

◆ ~QScriptDebuggerValueProperty()

QScriptDebuggerValueProperty::~QScriptDebuggerValueProperty ( )

Destroys this QScriptDebuggerValueProperty.

Definition at line 118 of file qscriptdebuggervalueproperty.cpp.

119 {
120 }

Functions

◆ flags()

QScriptValue::PropertyFlags QScriptDebuggerValueProperty::flags ( ) const

Returns the flags of this QScriptDebuggerValueProperty.

Definition at line 164 of file qscriptdebuggervalueproperty.cpp.

Referenced by debuggerScriptValuePropertyToScriptValue(), QScriptDebuggerLocalsModel::flags(), operator<<(), operator>>(), and QScriptDebuggerValueProperty().

165 {
167  if (!d)
168  return 0;
169  return d->flags;
170 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ isValid()

bool QScriptDebuggerValueProperty::isValid ( ) const

Returns true if this QScriptDebuggerValueProperty is valid, otherwise returns false.

Definition at line 176 of file qscriptdebuggervalueproperty.cpp.

177 {
179  return (d != 0);
180 }
double d
Definition: qnumeric_p.h:62
#define Q_D(Class)
Definition: qglobal.h:2482

◆ name()

QString QScriptDebuggerValueProperty::name ( ) const

◆ operator=()

QScriptDebuggerValueProperty & QScriptDebuggerValueProperty::operator= ( const QScriptDebuggerValueProperty other)

Assigns the other property to this QScriptDebuggerValueProperty.

Definition at line 125 of file qscriptdebuggervalueproperty.cpp.

126 {
127  d_ptr.assign(other.d_ptr.data());
128  return *this;
129 }
T * data() const
Returns the value of the pointer referenced by this object.
QScopedSharedPointer< QScriptDebuggerValuePropertyPrivate > d_ptr

◆ value()

QScriptDebuggerValue QScriptDebuggerValueProperty::value ( ) const

◆ valueAsString()

QString QScriptDebuggerValueProperty::valueAsString ( ) const

Definition at line 153 of file qscriptdebuggervalueproperty.cpp.

Referenced by QScriptDebuggerLocalsModel::data(), debuggerScriptValuePropertyToScriptValue(), operator>>(), and QScriptDebuggerValueProperty().

154 {
156  if (!d)
157  return QString();
158  return d->valueAsString;
159 }
double d
Definition: qnumeric_p.h:62
The QString class provides a Unicode character string.
Definition: qstring.h:83
#define Q_D(Class)
Definition: qglobal.h:2482

Friends and Related Functions

◆ operator<<()

QDataStream & operator<< ( QDataStream stream,
const QScriptDebuggerValueProperty property 
)
related

Writes the given property to the specified stream.

Definition at line 191 of file qscriptdebuggervalueproperty.cpp.

192 {
193  out << property.name();
194  out << property.value();
195  out << property.valueAsString();
196  out << (quint32)property.flags();
197  return out;
198 }
QScriptValue::PropertyFlags flags() const
Returns the flags of this QScriptDebuggerValueProperty.
unsigned int quint32
Definition: qglobal.h:938

◆ operator>>()

QDataStream & operator>> ( QDataStream stream,
QScriptDebuggerValueProperty property 
)
related

Reads a QScriptDebuggerValueProperty from the specified stream into the given property.

Definition at line 210 of file qscriptdebuggervalueproperty.cpp.

211 {
212  QString name;
215  quint32 flags;
216  in >> name;
217  in >> value;
218  in >> valueAsString;
219  in >> flags;
220  property = QScriptDebuggerValueProperty(
221  name, value, valueAsString, QScriptValue::PropertyFlags(flags));
222  return in;
223 }
QString name() const
Returns the name of this QScriptDebuggerValueProperty.
QScriptDebuggerValue value() const
Returns the value of this QScriptDebuggerValueProperty.
The QString class provides a Unicode character string.
Definition: qstring.h:83
QScriptValue::PropertyFlags flags() const
Returns the flags of this QScriptDebuggerValueProperty.
QScriptDebuggerValueProperty()
Constructs an invalid QScriptDebuggerValueProperty.
The QScriptDebuggerValue class represents a script value.
PropertyFlags
Definition: qmetaobject_p.h:61
unsigned int quint32
Definition: qglobal.h:938

Properties

◆ d_ptr

QScopedSharedPointer<QScriptDebuggerValuePropertyPrivate> QScriptDebuggerValueProperty::d_ptr
private

Definition at line 89 of file qscriptdebuggervalueproperty_p.h.

Referenced by operator=(), and QScriptDebuggerValueProperty().


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