Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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, IdField > flagsAndDefaultPropertyIsAliasAndId
 
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 945 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 952 of file qv4compileddata_p.h.

Member Function Documentation

◆ aliasCount()

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

Definition at line 1116 of file qv4compileddata_p.h.

References nAliases.

◆ aliasesBegin()

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

Definition at line 1128 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 1129 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 1065 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 1123 of file qv4compileddata_p.h.

References nBindings.

◆ bindingsBegin()

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

Definition at line 1121 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 1122 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 1070 of file qv4compileddata_p.h.

References offsetToBindings.

Referenced by bindingsBegin(), bindingsEnd(), and QQmlData::deferData().

+ 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 1039 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 1075 of file qv4compileddata_p.h.

References offsetToEnums.

◆ enumCount()

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

Definition at line 1117 of file qv4compileddata_p.h.

References nEnums.

◆ enumsBegin()

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

Definition at line 1132 of file qv4compileddata_p.h.

◆ enumsEnd()

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

Definition at line 1133 of file qv4compileddata_p.h.

References nEnums.

◆ flags()

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

Definition at line 997 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 1119 of file qv4compileddata_p.h.

References nFunctions.

◆ functionOffsetTable()

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

Definition at line 1055 of file qv4compileddata_p.h.

References offsetToFunctions.

◆ hasAliasAsDefaultProperty()

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

Definition at line 1018 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ hasFlag()

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

Definition at line 1002 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ inlineComponentAt()

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

Definition at line 1089 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 1140 of file qv4compileddata_p.h.

◆ inlineComponentsEnd()

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

Definition at line 1141 of file qv4compileddata_p.h.

References nInlineComponents.

◆ inlineComponentTable()

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

Definition at line 1099 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 1147 of file qv4compileddata_p.h.

References nNamedObjectsInComponent.

◆ namedObjectsInComponentTable()

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

Definition at line 1094 of file qv4compileddata_p.h.

References offsetToNamedObjectsInComponent.

◆ objectId()

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

Definition at line 1028 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ propertiesBegin()

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

Definition at line 1125 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 1126 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 1115 of file qv4compileddata_p.h.

References nProperties.

◆ propertyTable()

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

Definition at line 1060 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 1104 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 1144 of file qv4compileddata_p.h.

◆ requiredPropertyExtraDataEnd()

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

Definition at line 1145 of file qv4compileddata_p.h.

References nRequiredPropertyExtraData.

◆ requiredPropertyExtraDataTable()

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

Definition at line 1109 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 1007 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ setFlags()

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

Definition at line 1013 of file qv4compileddata_p.h.

References flags(), and flagsAndDefaultPropertyIsAliasAndId.

+ Here is the call graph for this function:

◆ setHasAliasAsDefaultProperty()

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

Definition at line 1023 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ setObjectId()

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

Definition at line 1033 of file qv4compileddata_p.h.

References flagsAndDefaultPropertyIsAliasAndId.

◆ signalAt()

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

Definition at line 1082 of file qv4compileddata_p.h.

References offsetToSignals.

◆ signalCount()

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

Definition at line 1118 of file qv4compileddata_p.h.

References nSignals.

◆ signalsBegin()

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

Definition at line 1136 of file qv4compileddata_p.h.

◆ signalsEnd()

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

Definition at line 1137 of file qv4compileddata_p.h.

References nSignals.

Member Data Documentation

◆ flagsAndDefaultPropertyIsAliasAndId

quint32_le_bitfield_union<FlagsField, DefaultPropertyIsAliasField, IdField> QV4::CompiledData::Object::flagsAndDefaultPropertyIsAliasAndId

◆ idNameIndex

quint32_le QV4::CompiledData::Object::idNameIndex

Definition at line 966 of file qv4compileddata_p.h.

◆ indexOfDefaultPropertyOrAlias

qint32_le QV4::CompiledData::Object::indexOfDefaultPropertyOrAlias

Definition at line 969 of file qv4compileddata_p.h.

◆ inheritedTypeNameIndex

quint32_le QV4::CompiledData::Object::inheritedTypeNameIndex

Definition at line 965 of file qv4compileddata_p.h.

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

◆ location

Location QV4::CompiledData::Object::location

Definition at line 984 of file qv4compileddata_p.h.

◆ locationOfIdProperty

Location QV4::CompiledData::Object::locationOfIdProperty

Definition at line 985 of file qv4compileddata_p.h.

◆ nAliases

◆ nBindings

◆ nEnums

quint16_le QV4::CompiledData::Object::nEnums

Definition at line 976 of file qv4compileddata_p.h.

Referenced by calculateSizeExcludingSignalsAndEnums(), enumCount(), and enumsEnd().

◆ nFunctions

◆ nInlineComponents

quint16_le QV4::CompiledData::Object::nInlineComponents

◆ nNamedObjectsInComponent

quint32_le QV4::CompiledData::Object::nNamedObjectsInComponent

◆ nProperties

◆ nRequiredPropertyExtraData

quint16_le QV4::CompiledData::Object::nRequiredPropertyExtraData

◆ nSignals

◆ offsetToAliases

quint32_le QV4::CompiledData::Object::offsetToAliases

Definition at line 974 of file qv4compileddata_p.h.

Referenced by aliasTable().

◆ offsetToBindings

quint32_le QV4::CompiledData::Object::offsetToBindings

Definition at line 981 of file qv4compileddata_p.h.

Referenced by bindingTable().

◆ offsetToEnums

quint32_le QV4::CompiledData::Object::offsetToEnums

Definition at line 977 of file qv4compileddata_p.h.

Referenced by enumAt().

◆ offsetToFunctions

quint32_le QV4::CompiledData::Object::offsetToFunctions

Definition at line 972 of file qv4compileddata_p.h.

Referenced by functionOffsetTable().

◆ offsetToInlineComponents

quint32_le QV4::CompiledData::Object::offsetToInlineComponents

Definition at line 986 of file qv4compileddata_p.h.

Referenced by inlineComponentTable().

◆ offsetToNamedObjectsInComponent

quint32_le QV4::CompiledData::Object::offsetToNamedObjectsInComponent

Definition at line 983 of file qv4compileddata_p.h.

Referenced by namedObjectsInComponentTable().

◆ offsetToProperties

quint32_le QV4::CompiledData::Object::offsetToProperties

Definition at line 973 of file qv4compileddata_p.h.

Referenced by propertyTable().

◆ offsetToRequiredPropertyExtraData

quint32_le QV4::CompiledData::Object::offsetToRequiredPropertyExtraData

Definition at line 988 of file qv4compileddata_p.h.

Referenced by requiredPropertyExtraDataTable().

◆ offsetToSignals

quint32_le QV4::CompiledData::Object::offsetToSignals

Definition at line 978 of file qv4compileddata_p.h.

Referenced by signalAt().


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