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::PropertyHash Struct Reference

#include <qv4internalclass_p.h>

+ Collaboration diagram for QV4::PropertyHash:

Classes

struct  Entry
 

Public Member Functions

 PropertyHash ()
 
 PropertyHash (const PropertyHash &other)
 
 ~PropertyHash ()
 
PropertyHashoperator= (const PropertyHash &other)
 
void addEntry (const Entry &entry, int classSize)
 
Entrylookup (PropertyKey identifier) const
 
void detach (bool grow, int classSize)
 

Public Attributes

PropertyHashDatad
 

Detailed Description

Definition at line 40 of file qv4internalclass_p.h.

Constructor & Destructor Documentation

◆ PropertyHash() [1/2]

QV4::PropertyHash::PropertyHash ( )
inline

Definition at line 74 of file qv4internalclass_p.h.

References d.

◆ PropertyHash() [2/2]

QV4::PropertyHash::PropertyHash ( const PropertyHash & other)
inline

Definition at line 79 of file qv4internalclass_p.h.

References d, other(), and QV4::PropertyHashData::refCount.

+ Here is the call graph for this function:

◆ ~PropertyHash()

QV4::PropertyHash::~PropertyHash ( )
inline

Definition at line 85 of file qv4internalclass_p.h.

References d, and QV4::PropertyHashData::refCount.

Referenced by QV4::Heap::InternalClass::destroy().

+ Here is the caller graph for this function:

Member Function Documentation

◆ addEntry()

void QV4::PropertyHash::addEntry ( const Entry & entry,
int classSize )

Definition at line 27 of file qv4internalclass.cpp.

References QV4::PropertyHashData::alloc, d, detach(), QV4::PropertyHashData::entries, grow(), QV4::PropertyHash::Entry::identifier, QV4::PropertyKey::isValid(), and QV4::PropertyHashData::size.

Referenced by QV4::Heap::addDummyEntry().

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

◆ detach()

void QV4::PropertyHash::detach ( bool grow,
int classSize )

Definition at line 44 of file qv4internalclass.cpp.

References QV4::PropertyHashData::alloc, d, QV4::PropertyHashData::entries, grow(), i, QV4::PropertyKey::id(), QV4::PropertyHash::Entry::identifier, QV4::PropertyHash::Entry::index, QV4::PropertyKey::isValid(), QV4::PropertyHashData::numBits, QV4::PropertyHashData::refCount, and QV4::PropertyHashData::size.

Referenced by addEntry().

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

◆ lookup()

PropertyHash::Entry * QV4::PropertyHash::lookup ( PropertyKey identifier) const
inline

Definition at line 102 of file qv4internalclass_p.h.

References QV4::PropertyHashData::alloc, d, QV4::PropertyHashData::entries, QV4::PropertyKey::id(), QV4::PropertyHash::Entry::identifier, QV4::PropertyKey::isValid(), and Q_ASSERT.

Referenced by QV4::Heap::InternalClass::find(), QV4::Heap::InternalClass::findEntry(), QV4::Heap::InternalClass::findValueOrGetter(), QV4::Heap::InternalClass::findValueOrSetter(), QV4::Heap::InternalClass::indexOfValueOrGetter(), and QV4::Heap::InternalClass::verifyIndex().

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

◆ operator=()

PropertyHash & QV4::PropertyHash::operator= ( const PropertyHash & other)
inline

Definition at line 91 of file qv4internalclass_p.h.

References d, other(), and QV4::PropertyHashData::refCount.

+ Here is the call graph for this function:

Member Data Documentation

◆ d

PropertyHashData* QV4::PropertyHash::d

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