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

#include <qv4objectiterator_p.h>

+ Collaboration diagram for QV4::ObjectIterator:

Public Types

enum  Flags { NoFlags = 0 , EnumerableOnly = 0x1 , WithSymbols = 0x2 }
 

Public Member Functions

 ObjectIterator (Scope &scope, const Object *o, uint flags)
 
 ~ObjectIterator ()
 
PropertyKey next (Property *pd=nullptr, PropertyAttributes *attributes=nullptr)
 
ReturnedValue nextPropertyName (Value *value)
 
ReturnedValue nextPropertyNameAsString (Value *value)
 
ReturnedValue nextPropertyNameAsString ()
 

Public Attributes

ExecutionEngineengine
 
Objectobject
 
OwnPropertyKeyIteratoriterator = nullptr
 
uint flags
 

Detailed Description

Definition at line 24 of file qv4objectiterator_p.h.

Member Enumeration Documentation

◆ Flags

Enumerator
NoFlags 
EnumerableOnly 
WithSymbols 

Definition at line 26 of file qv4objectiterator_p.h.

Constructor & Destructor Documentation

◆ ObjectIterator()

QV4::ObjectIterator::ObjectIterator ( Scope & scope,
const Object * o,
uint flags )
inline

Definition at line 37 of file qv4objectiterator_p.h.

References QV4::Scope::alloc(), engine, QV4::Scope::engine, and o.

+ Here is the call graph for this function:

◆ ~ObjectIterator()

QV4::ObjectIterator::~ObjectIterator ( )
inline

Definition at line 46 of file qv4objectiterator_p.h.

Member Function Documentation

◆ next()

PropertyKey ObjectIterator::next ( Property * pd = nullptr,
PropertyAttributes * attributes = nullptr )

Definition at line 16 of file qv4objectiterator.cpp.

References attrs, engine, EnumerableOnly, QV4::PropertyKey::invalid(), iterator, QV4::OwnPropertyKeyIterator::next(), and WithSymbols.

+ Here is the call graph for this function:

◆ nextPropertyName()

ReturnedValue ObjectIterator::nextPropertyName ( Value * value)

Definition at line 37 of file qv4objectiterator.cpp.

References attrs, engine, next, QV4::Encode::null(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ nextPropertyNameAsString() [1/2]

ReturnedValue ObjectIterator::nextPropertyNameAsString ( )

Definition at line 73 of file qv4objectiterator.cpp.

References attrs, engine, next, and QV4::Encode::null().

+ Here is the call graph for this function:

◆ nextPropertyNameAsString() [2/2]

ReturnedValue ObjectIterator::nextPropertyNameAsString ( Value * value)

Definition at line 56 of file qv4objectiterator.cpp.

References attrs, engine, next, and QV4::Encode::null().

+ Here is the call graph for this function:

Member Data Documentation

◆ engine

ExecutionEngine* QV4::ObjectIterator::engine

◆ flags

uint QV4::ObjectIterator::flags

Definition at line 35 of file qv4objectiterator_p.h.

◆ iterator

OwnPropertyKeyIterator* QV4::ObjectIterator::iterator = nullptr

Definition at line 34 of file qv4objectiterator_p.h.

Referenced by next().

◆ object

Object* QV4::ObjectIterator::object

Definition at line 33 of file qv4objectiterator_p.h.


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