Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::Set::Iterator Class Reference

#include <object.h>

Inheritance diagram for dart::Set::Iterator:
dart::ValueObject

Public Member Functions

 Iterator (const Set &set)
 
bool MoveNext ()
 
ObjectPtr CurrentKey () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 12208 of file object.h.

Constructor & Destructor Documentation

◆ Iterator()

dart::Set::Iterator::Iterator ( const Set set)
inlineexplicit

Definition at line 12210 of file object.h.

12211 : data_(Array::Handle(set.data())),
12212 scratch_(Object::Handle()),
12213 offset_(-1),
12214 length_(Smi::Value(set.used_data())) {}
static Object & Handle()
Definition object.h:407
intptr_t Value() const
Definition object.h:9969
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
Definition switches.h:76

Member Function Documentation

◆ CurrentKey()

ObjectPtr dart::Set::Iterator::CurrentKey ( ) const
inline

Definition at line 12230 of file object.h.

12230{ return data_.At(offset_); }
ObjectPtr At(intptr_t index) const
Definition object.h:10854

◆ MoveNext()

bool dart::Set::Iterator::MoveNext ( )
inline

Definition at line 12216 of file object.h.

12216 {
12217 while (true) {
12218 offset_++;
12219 if (offset_ >= length_) {
12220 return false;
12221 }
12222 scratch_ = data_.At(offset_);
12223 if (scratch_.ptr() != data_.ptr()) {
12224 // Slot is not deleted (self-reference indicates deletion).
12225 return true;
12226 }
12227 }
12228 }
ObjectPtr ptr() const
Definition object.h:332

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