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

#include <il.h>

Public Member Functions

 Iterator (Value *head)
 
ValueCurrent () const
 
bool Done () const
 
void Advance ()
 

Detailed Description

Definition at line 79 of file il.h.

Constructor & Destructor Documentation

◆ Iterator()

dart::Value::Iterator::Iterator ( Value head)
inlineexplicit

Definition at line 81 of file il.h.

81: next_(head) { Advance(); }
void Advance()
Definition il.h:84

Member Function Documentation

◆ Advance()

void dart::Value::Iterator::Advance ( )
inline

Definition at line 84 of file il.h.

84 {
85 // Pre-fetch next on advance and cache it.
86 current_ = next_;
87 if (next_ != nullptr) next_ = next_->next_use();
88 }
Value * next_use() const
Definition il.h:114

◆ Current()

Value * dart::Value::Iterator::Current ( ) const
inline

Definition at line 82 of file il.h.

82{ return current_; }

◆ Done()

bool dart::Value::Iterator::Done ( ) const
inline

Definition at line 83 of file il.h.

83{ return current_ == nullptr; }

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