Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QV4::CompiledData::Binding Struct Reference

#include <qv4compileddata_p.h>

Inheritance diagram for QV4::CompiledData::Binding:
Collaboration diagram for QV4::CompiledData::Binding:

Public Types

enum  Type : unsigned int {
  Type_Invalid , Type_Boolean , Type_Number , Type_String ,
  Type_Null , Type_Translation , Type_TranslationById , Type_Script ,
  Type_Object , Type_AttachedProperty , Type_GroupProperty
}
enum  Flag : unsigned int {
  IsSignalHandlerExpression = 0x1 , IsSignalHandlerObject = 0x2 , IsOnAssignment = 0x4 , InitializerForReadOnlyDeclaration = 0x8 ,
  IsResolvedEnum = 0x10 , IsListItem = 0x20 , IsBindingToAlias = 0x40 , IsDeferredBinding = 0x80 ,
  IsCustomParserBinding = 0x100 , IsFunctionExpression = 0x200 , IsPropertyObserver = 0x400
}
using FlagsField = quint32_le_bitfield_member<0, 16>
using TypeField = quint32_le_bitfield_member<16, 16>

Public Member Functions

 Q_DECLARE_FLAGS (Flags, Flag)
void clearFlags ()
void setFlag (Flag flag)
bool hasFlag (Flag flag) const
Flags flags () const
void setType (Type type)
Type type () const
bool hasSignalHandlerBindingFlag () const
bool isValueBinding () const
bool isValueBindingNoAlias () const
bool isValueBindingToAlias () const
bool isSignalHandler () const
bool isAttachedProperty () const
bool isGroupProperty () const
bool isFunctionExpression () const
bool isTranslationBinding () const
bool evaluatesToString () const
bool isNumberBinding () const
bool valueAsBoolean () const

Static Public Member Functions

static QString escapedString (const QString &string)

Public Attributes

quint32_le propertyNameIndex
quint32_le_bitfield_union< FlagsField, TypeFieldflagsAndType
union { 
   bool   b 
   quint32_le   constantValueIndex 
   quint32_le   compiledScriptIndex 
   quint32_le   objectIndex 
   quint32_le   translationDataIndex 
   quint32   nullMarker 
value
quint32_le stringIndex
Location location
Location valueLocation

Detailed Description

Definition at line 547 of file qv4compileddata_p.h.

Member Typedef Documentation

◆ FlagsField

◆ TypeField

Member Enumeration Documentation

◆ Flag

enum QV4::CompiledData::Binding::Flag : unsigned int
Enumerator
IsSignalHandlerExpression 
IsSignalHandlerObject 
IsOnAssignment 
InitializerForReadOnlyDeclaration 
IsResolvedEnum 
IsListItem 
IsBindingToAlias 
IsDeferredBinding 
IsCustomParserBinding 
IsFunctionExpression 
IsPropertyObserver 

Definition at line 565 of file qv4compileddata_p.h.

◆ Type

enum QV4::CompiledData::Binding::Type : unsigned int
Enumerator
Type_Invalid 
Type_Boolean 
Type_Number 
Type_String 
Type_Null 
Type_Translation 
Type_TranslationById 
Type_Script 
Type_Object 
Type_AttachedProperty 
Type_GroupProperty 

Definition at line 551 of file qv4compileddata_p.h.

Member Function Documentation

◆ clearFlags()

void QV4::CompiledData::Binding::clearFlags ( )
inline

Definition at line 584 of file qv4compileddata_p.h.

◆ escapedString()

QString QV4::CompiledData::Binding::escapedString ( const QString & string)
inlinestatic

Definition at line 663 of file qv4compileddata_p.h.

◆ evaluatesToString()

bool QV4::CompiledData::Binding::evaluatesToString ( ) const
inline

Definition at line 710 of file qv4compileddata_p.h.

References isTranslationBinding(), type(), and Type_String.

Here is the call graph for this function:

◆ flags()

Flags QV4::CompiledData::Binding::flags ( ) const
inline

Definition at line 587 of file qv4compileddata_p.h.

◆ hasFlag()

bool QV4::CompiledData::Binding::hasFlag ( Flag flag) const
inline

Definition at line 586 of file qv4compileddata_p.h.

Referenced by isFunctionExpression(), isValueBindingNoAlias(), and isValueBindingToAlias().

Here is the caller graph for this function:

◆ hasSignalHandlerBindingFlag()

bool QV4::CompiledData::Binding::hasSignalHandlerBindingFlag ( ) const
inline

Definition at line 605 of file qv4compileddata_p.h.

References IsPropertyObserver, IsSignalHandlerExpression, and IsSignalHandlerObject.

Referenced by isSignalHandler(), and isValueBinding().

Here is the caller graph for this function:

◆ isAttachedProperty()

bool QV4::CompiledData::Binding::isAttachedProperty ( ) const
inline

Definition at line 638 of file qv4compileddata_p.h.

References isGroupProperty(), isSignalHandler(), isValueBinding(), type(), and Type_AttachedProperty.

Referenced by isGroupProperty(), and isSignalHandler().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isFunctionExpression()

bool QV4::CompiledData::Binding::isFunctionExpression ( ) const
inline

Definition at line 660 of file qv4compileddata_p.h.

References hasFlag(), and IsFunctionExpression.

Here is the call graph for this function:

◆ isGroupProperty()

bool QV4::CompiledData::Binding::isGroupProperty ( ) const
inline

Definition at line 649 of file qv4compileddata_p.h.

References isAttachedProperty(), isSignalHandler(), isValueBinding(), type(), and Type_GroupProperty.

Referenced by isAttachedProperty(), and isSignalHandler().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNumberBinding()

bool QV4::CompiledData::Binding::isNumberBinding ( ) const
inline

Definition at line 712 of file qv4compileddata_p.h.

References type(), and Type_Number.

Here is the call graph for this function:

◆ isSignalHandler()

bool QV4::CompiledData::Binding::isSignalHandler ( ) const
inline

Definition at line 627 of file qv4compileddata_p.h.

References hasSignalHandlerBindingFlag(), isAttachedProperty(), isGroupProperty(), and isValueBinding().

Referenced by isAttachedProperty(), and isGroupProperty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isTranslationBinding()

bool QV4::CompiledData::Binding::isTranslationBinding ( ) const
inline

Definition at line 705 of file qv4compileddata_p.h.

References type(), Type_Translation, and Type_TranslationById.

Referenced by evaluatesToString().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValueBinding()

bool QV4::CompiledData::Binding::isValueBinding ( ) const
inline

Definition at line 613 of file qv4compileddata_p.h.

References hasSignalHandlerBindingFlag(), type(), Type_AttachedProperty, and Type_GroupProperty.

Referenced by isAttachedProperty(), isGroupProperty(), isSignalHandler(), isValueBindingNoAlias(), and isValueBindingToAlias().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isValueBindingNoAlias()

bool QV4::CompiledData::Binding::isValueBindingNoAlias ( ) const
inline

Definition at line 624 of file qv4compileddata_p.h.

References hasFlag(), IsBindingToAlias, and isValueBinding().

Here is the call graph for this function:

◆ isValueBindingToAlias()

bool QV4::CompiledData::Binding::isValueBindingToAlias ( ) const
inline

Definition at line 625 of file qv4compileddata_p.h.

References hasFlag(), IsBindingToAlias, and isValueBinding().

Here is the call graph for this function:

◆ Q_DECLARE_FLAGS()

QV4::CompiledData::Binding::Q_DECLARE_FLAGS ( Flags ,
Flag  )

◆ setFlag()

void QV4::CompiledData::Binding::setFlag ( Flag flag)
inline

Definition at line 585 of file qv4compileddata_p.h.

◆ setType()

void QV4::CompiledData::Binding::setType ( Type type)
inline

Definition at line 589 of file qv4compileddata_p.h.

◆ type()

Type QV4::CompiledData::Binding::type ( ) const
inline

Definition at line 590 of file qv4compileddata_p.h.

Referenced by QV4::CompiledData::CompilationUnit::bindingValueAsNumber(), QV4::CompiledData::CompilationUnit::bindingValueAsString(), evaluatesToString(), isAttachedProperty(), isGroupProperty(), isNumberBinding(), isTranslationBinding(), and isValueBinding().

Here is the caller graph for this function:

◆ valueAsBoolean()

bool QV4::CompiledData::Binding::valueAsBoolean ( ) const
inline

Definition at line 714 of file qv4compileddata_p.h.

Member Data Documentation

◆ b

bool QV4::CompiledData::Binding::b

Definition at line 593 of file qv4compileddata_p.h.

◆ compiledScriptIndex

quint32_le QV4::CompiledData::Binding::compiledScriptIndex

Definition at line 595 of file qv4compileddata_p.h.

◆ constantValueIndex

quint32_le QV4::CompiledData::Binding::constantValueIndex

Definition at line 594 of file qv4compileddata_p.h.

◆ flagsAndType

quint32_le_bitfield_union<FlagsField, TypeField> QV4::CompiledData::Binding::flagsAndType

Definition at line 582 of file qv4compileddata_p.h.

◆ location

Location QV4::CompiledData::Binding::location

Definition at line 602 of file qv4compileddata_p.h.

◆ nullMarker

quint32 QV4::CompiledData::Binding::nullMarker

Definition at line 598 of file qv4compileddata_p.h.

◆ objectIndex

quint32_le QV4::CompiledData::Binding::objectIndex

Definition at line 596 of file qv4compileddata_p.h.

◆ propertyNameIndex

quint32_le QV4::CompiledData::Binding::propertyNameIndex

Definition at line 549 of file qv4compileddata_p.h.

◆ stringIndex

quint32_le QV4::CompiledData::Binding::stringIndex

Definition at line 600 of file qv4compileddata_p.h.

◆ translationDataIndex

quint32_le QV4::CompiledData::Binding::translationDataIndex

Definition at line 597 of file qv4compileddata_p.h.

◆ [union]

union { ... } QV4::CompiledData::Binding::value

◆ valueLocation

Location QV4::CompiledData::Binding::valueLocation

Definition at line 603 of file qv4compileddata_p.h.


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