Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::CompiledData::Object Struct Reference

#include <qv4compileddata_p.h>

+ Collaboration diagram for QV4::CompiledData::Object:

Public Types

enum  Flag : unsigned int {
  NoFlag = 0x0 , IsComponent = 0x1 , HasDeferredBindings = 0x2 , HasCustomParserBindings = 0x4 ,
  IsInlineComponentRoot = 0x8 , IsPartOfInlineComponent = 0x10
}
 
typedef TableIterator< Enum, Object, &Object::enumAtEnumIterator
 
typedef TableIterator< Signal, Object, &Object::signalAtSignalIterator
 
typedef TableIterator< InlineComponent, Object, &Object::inlineComponentAtInlineComponentIterator
 
typedef TableIterator< RequiredPropertyExtraData, Object, &Object::requiredPropertyExtraDataAtRequiredPropertyExtraDataIterator
 

Public Member Functions

 Q_DECLARE_FLAGS (Flags, Flag)
 
Flags flags () const
 
bool hasFlag (Flag flag) const
 
void setFlag (Flag flag)
 
void setFlags (Flags flags)
 
bool hasAliasAsDefaultProperty () const
 
void setHasAliasAsDefaultProperty (bool defaultAlias)
 
qint32 objectId () const
 
void setObjectId (qint32 id)
 
const quint32_lefunctionOffsetTable () const
 
const PropertypropertyTable () const
 
const AliasaliasTable () const
 
const BindingbindingTable () const
 
const EnumenumAt (int idx) const
 
const SignalsignalAt (int idx) const
 
const InlineComponentinlineComponentAt (int idx) const
 
const quint32_lenamedObjectsInComponentTable () const
 
const InlineComponentinlineComponentTable () const
 
const RequiredPropertyExtraDatarequiredPropertyExtraDataAt (int idx) const
 
const RequiredPropertyExtraDatarequiredPropertyExtraDataTable () const
 
int propertyCount () const
 
int aliasCount () const
 
int enumCount () const
 
int signalCount () const
 
int functionCount () const
 
const BindingbindingsBegin () const
 
const BindingbindingsEnd () const
 
int bindingCount () const
 
const PropertypropertiesBegin () const
 
const PropertypropertiesEnd () const
 
const AliasaliasesBegin () const
 
const AliasaliasesEnd () const
 
EnumIterator enumsBegin () const
 
EnumIterator enumsEnd () const
 
SignalIterator signalsBegin () const
 
SignalIterator signalsEnd () const
 
InlineComponentIterator inlineComponentsBegin () const
 
InlineComponentIterator inlineComponentsEnd () const
 
RequiredPropertyExtraDataIterator requiredPropertyExtraDataBegin () const
 
RequiredPropertyExtraDataIterator requiredPropertyExtraDataEnd () const
 
int namedObjectsInComponentCount () const
 

Static Public Member Functions

static int calculateSizeExcludingSignalsAndEnums (int nFunctions, int nProperties, int nAliases, int nEnums, int nSignals, int nBindings, int nNamedObjectsInComponent, int nInlineComponents, int nRequiredPropertyExtraData)
 

Public Attributes

quint32_le inheritedTypeNameIndex
 
quint32_le idNameIndex
 
quint32_le_bitfield_union< FlagsField, DefaultPropertyIsAliasField, IdFieldflagsAndDefaultPropertyIsAliasAndId
 
qint32_le indexOfDefaultPropertyOrAlias
 
quint16_le nFunctions
 
quint16_le nProperties
 
quint32_le offsetToFunctions
 
quint32_le offsetToProperties
 
quint32_le offsetToAliases
 
quint16_le nAliases
 
quint16_le nEnums
 
quint32_le offsetToEnums
 
quint32_le offsetToSignals
 
quint16_le nSignals
 
quint16_le nBindings
 
quint32_le offsetToBindings
 
quint32_le nNamedObjectsInComponent
 
quint32_le offsetToNamedObjectsInComponent
 
Location location
 
Location locationOfIdProperty
 
quint32_le offsetToInlineComponents
 
quint16_le nInlineComponents
 
quint32_le offsetToRequiredPropertyExtraData
 
quint16_le nRequiredPropertyExtraData
 

Detailed Description

Definition at line 922 of file qv4compileddata_p.h.

Member Typedef Documentation

◆ EnumIterator

◆ InlineComponentIterator

◆ RequiredPropertyExtraDataIterator

◆ SignalIterator

Member Enumeration Documentation

◆ Flag

enum QV4::CompiledData::Object::Flag : unsigned int
Enumerator
NoFlag 
IsComponent 
HasDeferredBindings 
HasCustomParserBindings 
IsInlineComponentRoot 
IsPartOfInlineComponent 

Definition at line 929 of file qv4compileddata_p.h.

Member Function Documentation

◆ aliasCount()

int QV4::CompiledData::Object::aliasCount ( ) const
inline

Definition at line 1093 of file qv4compileddata_p.h.

References nAliases.

◆ aliasesBegin()

const Alias * QV4::CompiledData::Object::aliasesBegin ( ) const
inline

Definition at line 1105 of file qv4compileddata_p.h.

References aliasTable().

+ Here is the call graph for this function:

◆ aliasesEnd()

const Alias * QV4::CompiledData::Object::aliasesEnd ( ) const
inline

Definition at line 1106 of file qv4compileddata_p.h.

References aliasTable(), and nAliases.

+ Here is the call graph for this function:

◆ aliasTable()

const Alias * QV4::CompiledData::Object::aliasTable ( ) const
inline

Definition at line 1042 of file qv4compileddata_p.h.

References offsetToAliases.

Referenced by aliasesBegin(), aliasesEnd(), QQmlVMEMetaObject::aliasTarget(), QQmlVMEMetaObject::connectAlias(), QQmlVMEMetaObject::metaCall(), and QQmlVMEMetaObjectEndpoint::tryConnect().

+ Here is the caller graph for this function:

◆ bindingCount()

int QV4::CompiledData::Object::bindingCount ( ) const
inline

Definition at line 1100 of file qv4compileddata_p.h.

References nBindings.

◆ bindingsBegin()

const Binding * QV4::CompiledData::Object::bindingsBegin ( ) const
inline

Definition at line 1098 of file qv4compileddata_p.h.

References bindingTable().

+ Here is the call graph for this function:

◆ bindingsEnd()

const Binding * QV4::CompiledData::Object::bindingsEnd ( ) const
inline

Definition at line 1099 of file qv4compileddata_p.h.

References bindingTable(), and nBindings.

+ Here is the call graph for this function:

◆ bindingTable()

const Binding * QV4::CompiledData::Object::bindingTable ( ) const
inline

Definition at line 1047 of file qv4compileddata_p.h.

References offsetToBindings.

Referenced by bindingsBegin(), bindingsEnd(), QQuickPropertyChangesPrivate::decodeBinding(), QQmlBindPrivate::decodeBinding(), QQmlData::deferData(), and QQuickPropertyChangesParser::verifyList().

+ Here is the caller graph for this function:

◆ calculateSizeExcludingSignalsAndEnums()

static int QV4::CompiledData::Object::calculateSizeExcludingSignalsAndEnums ( int  nFunctions,
int  nProperties,
int  nAliases,
int  nEnums,
int  nSignals,
int  nBindings,
int  nNamedObjectsInComponent,
int  nInlineComponents,
int  nRequiredPropertyExtraData 
)
inlinestatic

Definition at line 1016 of file qv4compileddata_p.h.

References nAliases, nBindings, nEnums, nFunctions, nInlineComponents, nNamedObjectsInComponent, nProperties, nRequiredPropertyExtraData, and nSignals.

Referenced by QmlIR::QmlUnitGenerator::generate().

+ Here is the caller graph for this function:

◆ enumAt()

const Enum * QV4::CompiledData::Object::enumAt ( int  idx) const
inline

Definition at line 1052 of file qv4compileddata_p.h.

References offsetToEnums.

◆ enumCount()

int QV4::CompiledData::Object::enumCount ( ) const
inline

Definition at line 1094 of file qv4compileddata_p.h.

References nEnums.

◆ enumsBegin()

EnumIterator QV4::CompiledData::Object::enumsBegin ( ) const
inline

Definition at line 1109 of file qv4compileddata_p.h.

◆ enumsEnd()

EnumIterator QV4::CompiledData::Object::enumsEnd ( ) const
inline

Definition at line 1110 of file qv4compileddata_p.h.

References nEnums.

◆ flags()

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

Definition at line 974 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

Referenced by setFlags().

+ Here is the caller graph for this function:

◆ functionCount()

int QV4::CompiledData::Object::functionCount ( ) const
inline

Definition at line 1096 of file qv4compileddata_p.h.

References nFunctions.

◆ functionOffsetTable()

const quint32_le * QV4::CompiledData::Object::functionOffsetTable ( ) const
inline

Definition at line 1032 of file qv4compileddata_p.h.

References offsetToFunctions.

◆ hasAliasAsDefaultProperty()

bool QV4::CompiledData::Object::hasAliasAsDefaultProperty ( ) const
inline

Definition at line 995 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ hasFlag()

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

Definition at line 979 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ inlineComponentAt()

const InlineComponent * QV4::CompiledData::Object::inlineComponentAt ( int  idx) const
inline

Definition at line 1066 of file qv4compileddata_p.h.

References inlineComponentTable().

+ Here is the call graph for this function:

◆ inlineComponentsBegin()

InlineComponentIterator QV4::CompiledData::Object::inlineComponentsBegin ( ) const
inline

Definition at line 1117 of file qv4compileddata_p.h.

◆ inlineComponentsEnd()

InlineComponentIterator QV4::CompiledData::Object::inlineComponentsEnd ( ) const
inline

Definition at line 1118 of file qv4compileddata_p.h.

References nInlineComponents.

◆ inlineComponentTable()

const InlineComponent * QV4::CompiledData::Object::inlineComponentTable ( ) const
inline

Definition at line 1076 of file qv4compileddata_p.h.

References offsetToInlineComponents.

Referenced by inlineComponentAt().

+ Here is the caller graph for this function:

◆ namedObjectsInComponentCount()

int QV4::CompiledData::Object::namedObjectsInComponentCount ( ) const
inline

Definition at line 1124 of file qv4compileddata_p.h.

References nNamedObjectsInComponent.

◆ namedObjectsInComponentTable()

const quint32_le * QV4::CompiledData::Object::namedObjectsInComponentTable ( ) const
inline

Definition at line 1071 of file qv4compileddata_p.h.

References offsetToNamedObjectsInComponent.

◆ objectId()

qint32 QV4::CompiledData::Object::objectId ( ) const
inline

Definition at line 1005 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ propertiesBegin()

const Property * QV4::CompiledData::Object::propertiesBegin ( ) const
inline

Definition at line 1102 of file qv4compileddata_p.h.

References propertyTable().

+ Here is the call graph for this function:

◆ propertiesEnd()

const Property * QV4::CompiledData::Object::propertiesEnd ( ) const
inline

Definition at line 1103 of file qv4compileddata_p.h.

References nProperties, and propertyTable().

+ Here is the call graph for this function:

◆ propertyCount()

int QV4::CompiledData::Object::propertyCount ( ) const
inline

Definition at line 1092 of file qv4compileddata_p.h.

References nProperties.

◆ propertyTable()

const Property * QV4::CompiledData::Object::propertyTable ( ) const
inline

Definition at line 1037 of file qv4compileddata_p.h.

References offsetToProperties.

Referenced by QQmlVMEMetaObject::metaCall(), propertiesBegin(), propertiesEnd(), QQmlVMEMetaObject::readVarProperty(), QQmlVMEMetaObject::writeProperty(), and QQmlVMEMetaObject::writeVarProperty().

+ Here is the caller graph for this function:

◆ Q_DECLARE_FLAGS()

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

◆ requiredPropertyExtraDataAt()

const RequiredPropertyExtraData * QV4::CompiledData::Object::requiredPropertyExtraDataAt ( int  idx) const
inline

Definition at line 1081 of file qv4compileddata_p.h.

References requiredPropertyExtraDataTable().

+ Here is the call graph for this function:

◆ requiredPropertyExtraDataBegin()

RequiredPropertyExtraDataIterator QV4::CompiledData::Object::requiredPropertyExtraDataBegin ( ) const
inline

Definition at line 1121 of file qv4compileddata_p.h.

◆ requiredPropertyExtraDataEnd()

RequiredPropertyExtraDataIterator QV4::CompiledData::Object::requiredPropertyExtraDataEnd ( ) const
inline

Definition at line 1122 of file qv4compileddata_p.h.

References nRequiredPropertyExtraData.

◆ requiredPropertyExtraDataTable()

const RequiredPropertyExtraData * QV4::CompiledData::Object::requiredPropertyExtraDataTable ( ) const
inline

Definition at line 1086 of file qv4compileddata_p.h.

References offsetToRequiredPropertyExtraData.

Referenced by requiredPropertyExtraDataAt().

+ Here is the caller graph for this function:

◆ setFlag()

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

Definition at line 984 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ setFlags()

void QV4::CompiledData::Object::setFlags ( Flags  flags)
inline

Definition at line 990 of file qv4compileddata_p.h.

References flags(), and flagsAndDefaultPropertyIsAliasAndId.

Referenced by QmlIR::QmlUnitGenerator::generate().

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

◆ setHasAliasAsDefaultProperty()

void QV4::CompiledData::Object::setHasAliasAsDefaultProperty ( bool  defaultAlias)
inline

Definition at line 1000 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

Referenced by QmlIR::QmlUnitGenerator::generate().

+ Here is the caller graph for this function:

◆ setObjectId()

void QV4::CompiledData::Object::setObjectId ( qint32  id)
inline

Definition at line 1010 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

Referenced by QmlIR::QmlUnitGenerator::generate().

+ Here is the caller graph for this function:

◆ signalAt()

const Signal * QV4::CompiledData::Object::signalAt ( int  idx) const
inline

Definition at line 1059 of file qv4compileddata_p.h.

References offsetToSignals.

◆ signalCount()

int QV4::CompiledData::Object::signalCount ( ) const
inline

Definition at line 1095 of file qv4compileddata_p.h.

References nSignals.

◆ signalsBegin()

SignalIterator QV4::CompiledData::Object::signalsBegin ( ) const
inline

Definition at line 1113 of file qv4compileddata_p.h.

◆ signalsEnd()

SignalIterator QV4::CompiledData::Object::signalsEnd ( ) const
inline

Definition at line 1114 of file qv4compileddata_p.h.

References nSignals.

Member Data Documentation

◆ flagsAndDefaultPropertyIsAliasAndId

◆ idNameIndex

quint32_le QV4::CompiledData::Object::idNameIndex

Definition at line 943 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ indexOfDefaultPropertyOrAlias

qint32_le QV4::CompiledData::Object::indexOfDefaultPropertyOrAlias

Definition at line 946 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ inheritedTypeNameIndex

quint32_le QV4::CompiledData::Object::inheritedTypeNameIndex

Definition at line 942 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ location

Location QV4::CompiledData::Object::location

Definition at line 961 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ locationOfIdProperty

Location QV4::CompiledData::Object::locationOfIdProperty

Definition at line 962 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate().

◆ nAliases

◆ nBindings

◆ nEnums

quint16_le QV4::CompiledData::Object::nEnums

◆ nFunctions

◆ nInlineComponents

quint16_le QV4::CompiledData::Object::nInlineComponents

◆ nNamedObjectsInComponent

◆ nProperties

◆ nRequiredPropertyExtraData

quint16_le QV4::CompiledData::Object::nRequiredPropertyExtraData

◆ nSignals

◆ offsetToAliases

quint32_le QV4::CompiledData::Object::offsetToAliases

Definition at line 951 of file qv4compileddata_p.h.

Referenced by aliasTable(), and QmlIR::QmlUnitGenerator::generate().

◆ offsetToBindings

quint32_le QV4::CompiledData::Object::offsetToBindings

Definition at line 958 of file qv4compileddata_p.h.

Referenced by bindingTable(), and QmlIR::QmlUnitGenerator::generate().

◆ offsetToEnums

quint32_le QV4::CompiledData::Object::offsetToEnums

Definition at line 954 of file qv4compileddata_p.h.

Referenced by enumAt(), and QmlIR::QmlUnitGenerator::generate().

◆ offsetToFunctions

quint32_le QV4::CompiledData::Object::offsetToFunctions

Definition at line 949 of file qv4compileddata_p.h.

Referenced by functionOffsetTable(), and QmlIR::QmlUnitGenerator::generate().

◆ offsetToInlineComponents

quint32_le QV4::CompiledData::Object::offsetToInlineComponents

Definition at line 963 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate(), and inlineComponentTable().

◆ offsetToNamedObjectsInComponent

quint32_le QV4::CompiledData::Object::offsetToNamedObjectsInComponent

◆ offsetToProperties

quint32_le QV4::CompiledData::Object::offsetToProperties

Definition at line 950 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate(), and propertyTable().

◆ offsetToRequiredPropertyExtraData

quint32_le QV4::CompiledData::Object::offsetToRequiredPropertyExtraData

◆ offsetToSignals

quint32_le QV4::CompiledData::Object::offsetToSignals

Definition at line 955 of file qv4compileddata_p.h.

Referenced by QmlIR::QmlUnitGenerator::generate(), and signalAt().


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