Flutter Engine
The Flutter Engine
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 12234 of file object.h.

Constructor & Destructor Documentation

◆ Iterator()

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

Definition at line 12236 of file object.h.

12237 : data_(Array::Handle(set.data())),
12238 scratch_(Object::Handle()),
12239 offset_(-1),
12240 length_(Smi::Value(set.used_data())) {}
static Object & Handle()
Definition: object.h:407
intptr_t Value() const
Definition: object.h:9990
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 12256 of file object.h.

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

◆ MoveNext()

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

Definition at line 12242 of file object.h.

12242 {
12243 while (true) {
12244 offset_++;
12245 if (offset_ >= length_) {
12246 return false;
12247 }
12248 scratch_ = data_.At(offset_);
12249 if (scratch_.ptr() != data_.ptr()) {
12250 // Slot is not deleted (self-reference indicates deletion).
12251 return true;
12252 }
12253 }
12254 }
ObjectPtr ptr() const
Definition: object.h:332

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