Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::Environment::ShallowIterator Class Reference

#include <il.h>

Inheritance diagram for dart::Environment::ShallowIterator:
dart::ValueObject

Public Member Functions

 ShallowIterator (Environment *environment)
 
 ShallowIterator (const ShallowIterator &other)
 
ShallowIteratoroperator= (const ShallowIterator &other)
 
Environmentenvironment () const
 
void Advance ()
 
bool Done () const
 
ValueCurrentValue () const
 
void SetCurrentValue (Value *value)
 
Location CurrentLocation () const
 
void SetCurrentLocation (Location loc)
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 11550 of file il.h.

Constructor & Destructor Documentation

◆ ShallowIterator() [1/2]

dart::Environment::ShallowIterator::ShallowIterator ( Environment environment)
inlineexplicit

Definition at line 11552 of file il.h.

11553 : environment_(environment), index_(0) {}
Environment * environment() const
Definition: il.h:11566

◆ ShallowIterator() [2/2]

dart::Environment::ShallowIterator::ShallowIterator ( const ShallowIterator other)
inline

Definition at line 11555 of file il.h.

11556 : ValueObject(),
11557 environment_(other.environment_),
11558 index_(other.index_) {}

Member Function Documentation

◆ Advance()

void dart::Environment::ShallowIterator::Advance ( )
inline

Definition at line 11568 of file il.h.

11568 {
11569 ASSERT(!Done());
11570 ++index_;
11571 }
#define ASSERT(E)

◆ CurrentLocation()

Location dart::Environment::ShallowIterator::CurrentLocation ( ) const
inline

Definition at line 11589 of file il.h.

11589 {
11590 ASSERT(!Done());
11591 return environment_->locations_[index_];
11592 }

◆ CurrentValue()

Value * dart::Environment::ShallowIterator::CurrentValue ( ) const
inline

Definition at line 11577 of file il.h.

11577 {
11578 ASSERT(!Done());
11579 ASSERT(environment_->values_[index_] != nullptr);
11580 return environment_->values_[index_];
11581 }

◆ Done()

bool dart::Environment::ShallowIterator::Done ( ) const
inline

Definition at line 11573 of file il.h.

11573 {
11574 return (environment_ == nullptr) || (index_ >= environment_->Length());
11575 }
intptr_t Length() const
Definition: il.h:11712

◆ environment()

Environment * dart::Environment::ShallowIterator::environment ( ) const
inline

Definition at line 11566 of file il.h.

11566{ return environment_; }

◆ operator=()

ShallowIterator & dart::Environment::ShallowIterator::operator= ( const ShallowIterator other)
inline

Definition at line 11560 of file il.h.

11560 {
11561 environment_ = other.environment_;
11562 index_ = other.index_;
11563 return *this;
11564 }

◆ SetCurrentLocation()

void dart::Environment::ShallowIterator::SetCurrentLocation ( Location  loc)
inline

Definition at line 11594 of file il.h.

11594 {
11595 ASSERT(!Done());
11596 environment_->locations_[index_] = loc;
11597 }

◆ SetCurrentValue()

void dart::Environment::ShallowIterator::SetCurrentValue ( Value value)
inline

Definition at line 11583 of file il.h.

11583 {
11584 ASSERT(!Done());
11585 ASSERT(value != nullptr);
11586 environment_->values_[index_] = value;
11587 }
uint8_t value

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