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

#include <qv4global_p.h>

+ Collaboration diagram for QV4::PropertyAttributes:

Public Types

enum  Type { Data = 0 , Accessor = 1 , Generic = 2 }
 

Public Member Functions

 PropertyAttributes ()
 
 PropertyAttributes (PropertyFlag f)
 
 PropertyAttributes (PropertyFlags f)
 
void setType (Type t)
 
Type type () const
 
bool isData () const
 
bool isAccessor () const
 
bool isGeneric () const
 
bool hasType () const
 
bool hasWritable () const
 
bool hasConfigurable () const
 
bool hasEnumerable () const
 
void setWritable (bool b)
 
void setConfigurable (bool b)
 
void setEnumerable (bool b)
 
void resolve ()
 
bool isWritable () const
 
bool isEnumerable () const
 
bool isConfigurable () const
 
void clearType ()
 
void clearWritable ()
 
void clearEnumerable ()
 
void clearConfigurable ()
 
void clear ()
 
bool isEmpty () const
 
uint all () const
 
bool operator== (PropertyAttributes other)
 
bool operator!= (PropertyAttributes other)
 

Public Attributes

union { 
 
   uchar   m_all 
 
   struct { 
 
      uchar   m_flags: 4 
 
      uchar   m_mask: 4 
 
   }  
 
   struct { 
 
      uchar   m_type: 1 
 
      uchar   m_writable: 1 
 
      uchar   m_enumerable: 1 
 
      uchar   m_configurable: 1 
 
      uchar   type_set: 1 
 
      uchar   writable_set: 1 
 
      uchar   enumerable_set: 1 
 
      uchar   configurable_set: 1 
 
   }  
 
};  
 

Detailed Description

Definition at line 192 of file qv4global_p.h.

Member Enumeration Documentation

◆ Type

Enumerator
Data 
Accessor 
Generic 

Definition at line 215 of file qv4global_p.h.

Constructor & Destructor Documentation

◆ PropertyAttributes() [1/3]

QV4::PropertyAttributes::PropertyAttributes ( )
inline

Definition at line 221 of file qv4global_p.h.

◆ PropertyAttributes() [2/3]

QV4::PropertyAttributes::PropertyAttributes ( PropertyFlag f)
inline

Definition at line 222 of file qv4global_p.h.

References QV4::Attr_Accessor, QV4::Attr_Invalid, QV4::Attr_NotConfigurable, QV4::Attr_NotEnumerable, QV4::Attr_NotWritable, Data, and setType().

+ Here is the call graph for this function:

◆ PropertyAttributes() [3/3]

QV4::PropertyAttributes::PropertyAttributes ( PropertyFlags f)
inline

Definition at line 231 of file qv4global_p.h.

References QV4::Attr_Accessor, QV4::Attr_Invalid, QV4::Attr_NotConfigurable, QV4::Attr_NotEnumerable, QV4::Attr_NotWritable, Data, and setType().

+ Here is the call graph for this function:

Member Function Documentation

◆ all()

uint QV4::PropertyAttributes::all ( ) const
inline

Definition at line 271 of file qv4global_p.h.

◆ clear()

void QV4::PropertyAttributes::clear ( )
inline

Definition at line 268 of file qv4global_p.h.

◆ clearConfigurable()

void QV4::PropertyAttributes::clearConfigurable ( )
inline

Definition at line 266 of file qv4global_p.h.

◆ clearEnumerable()

void QV4::PropertyAttributes::clearEnumerable ( )
inline

Definition at line 265 of file qv4global_p.h.

◆ clearType()

void QV4::PropertyAttributes::clearType ( )
inline

Definition at line 263 of file qv4global_p.h.

References Data.

◆ clearWritable()

void QV4::PropertyAttributes::clearWritable ( )
inline

Definition at line 264 of file qv4global_p.h.

◆ hasConfigurable()

bool QV4::PropertyAttributes::hasConfigurable ( ) const
inline

Definition at line 250 of file qv4global_p.h.

◆ hasEnumerable()

bool QV4::PropertyAttributes::hasEnumerable ( ) const
inline

Definition at line 251 of file qv4global_p.h.

◆ hasType()

bool QV4::PropertyAttributes::hasType ( ) const
inline

Definition at line 248 of file qv4global_p.h.

◆ hasWritable()

bool QV4::PropertyAttributes::hasWritable ( ) const
inline

Definition at line 249 of file qv4global_p.h.

◆ isAccessor()

bool QV4::PropertyAttributes::isAccessor ( ) const
inline

Definition at line 245 of file qv4global_p.h.

References Accessor.

Referenced by QV4::Object::arraySet(), QV4::SparseArrayData::del(), QV4::Object::insertMember(), QV4::ObjectOwnPropertyKeyIterator::next(), QV4::SimpleArrayData::put(), QV4::SparseArrayData::setAttribute(), QV4::ProxyObject::virtualGet(), and QV4::ProxyObject::virtualPut().

+ Here is the caller graph for this function:

◆ isConfigurable()

bool QV4::PropertyAttributes::isConfigurable ( ) const
inline

Definition at line 261 of file qv4global_p.h.

Referenced by QV4::SimpleArrayData::del(), QV4::SparseArrayData::del(), QV4::SimpleArrayData::truncate(), QV4::ProxyObject::virtualDeleteProperty(), QV4::ProxyObject::virtualGet(), QV4::ProxyObject::virtualHasProperty(), and QV4::ProxyObject::virtualPut().

+ Here is the caller graph for this function:

◆ isData()

bool QV4::PropertyAttributes::isData ( ) const
inline

Definition at line 244 of file qv4global_p.h.

References Data.

Referenced by QV4::ProxyObject::virtualGet(), and QV4::ProxyObject::virtualPut().

+ Here is the caller graph for this function:

◆ isEmpty()

bool QV4::PropertyAttributes::isEmpty ( ) const
inline

Definition at line 269 of file qv4global_p.h.

Referenced by QV4::InternalClassEntry::isValid().

+ Here is the caller graph for this function:

◆ isEnumerable()

bool QV4::PropertyAttributes::isEnumerable ( ) const
inline

Definition at line 260 of file qv4global_p.h.

◆ isGeneric()

bool QV4::PropertyAttributes::isGeneric ( ) const
inline

Definition at line 246 of file qv4global_p.h.

References Generic.

◆ isWritable()

bool QV4::PropertyAttributes::isWritable ( ) const
inline

Definition at line 259 of file qv4global_p.h.

References Data.

Referenced by QV4::ArrayObject::virtualDefineOwnProperty(), QV4::ProxyObject::virtualGet(), and QV4::ProxyObject::virtualPut().

+ Here is the caller graph for this function:

◆ operator!=()

bool QV4::PropertyAttributes::operator!= ( PropertyAttributes other)
inline

Definition at line 276 of file qv4global_p.h.

References other().

+ Here is the call graph for this function:

◆ operator==()

bool QV4::PropertyAttributes::operator== ( PropertyAttributes other)
inline

Definition at line 273 of file qv4global_p.h.

References other().

+ Here is the call graph for this function:

◆ resolve()

void QV4::PropertyAttributes::resolve ( )
inline

Definition at line 257 of file qv4global_p.h.

◆ setConfigurable()

void QV4::PropertyAttributes::setConfigurable ( bool b)
inline

Definition at line 254 of file qv4global_p.h.

Referenced by QV4::ExecutionEngine::lockObject().

+ Here is the caller graph for this function:

◆ setEnumerable()

void QV4::PropertyAttributes::setEnumerable ( bool b)
inline

Definition at line 255 of file qv4global_p.h.

◆ setType()

void QV4::PropertyAttributes::setType ( Type t)
inline

Definition at line 241 of file qv4global_p.h.

◆ setWritable()

void QV4::PropertyAttributes::setWritable ( bool b)
inline

Definition at line 253 of file qv4global_p.h.

Referenced by QV4::ExecutionEngine::lockObject(), and QV4::ArrayObject::virtualDefineOwnProperty().

+ Here is the caller graph for this function:

◆ type()

Type QV4::PropertyAttributes::type ( ) const
inline

Definition at line 242 of file qv4global_p.h.

References Generic.

Member Data Documentation

◆ [union]

QT_WARNING_PUSH union { ... } QV4::PropertyAttributes

◆ configurable_set

uchar QV4::PropertyAttributes::configurable_set

Definition at line 210 of file qv4global_p.h.

◆ enumerable_set

uchar QV4::PropertyAttributes::enumerable_set

Definition at line 209 of file qv4global_p.h.

◆ m_all

uchar QV4::PropertyAttributes::m_all

Definition at line 197 of file qv4global_p.h.

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

◆ m_configurable

uchar QV4::PropertyAttributes::m_configurable

Definition at line 206 of file qv4global_p.h.

◆ m_enumerable

uchar QV4::PropertyAttributes::m_enumerable

Definition at line 205 of file qv4global_p.h.

◆ m_flags

uchar QV4::PropertyAttributes::m_flags

Definition at line 199 of file qv4global_p.h.

◆ m_mask

uchar QV4::PropertyAttributes::m_mask

Definition at line 200 of file qv4global_p.h.

◆ m_type

uchar QV4::PropertyAttributes::m_type

Definition at line 203 of file qv4global_p.h.

◆ m_writable

uchar QV4::PropertyAttributes::m_writable

Definition at line 204 of file qv4global_p.h.

◆ type_set

uchar QV4::PropertyAttributes::type_set

Definition at line 207 of file qv4global_p.h.

◆ writable_set

uchar QV4::PropertyAttributes::writable_set

Definition at line 208 of file qv4global_p.h.


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