Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 11496 of file il.h.

Constructor & Destructor Documentation

◆ ShallowIterator() [1/2]

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

Definition at line 11498 of file il.h.

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

◆ ShallowIterator() [2/2]

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

Definition at line 11501 of file il.h.

11502 : ValueObject(),
11503 environment_(other.environment_),
11504 index_(other.index_) {}

Member Function Documentation

◆ Advance()

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

Definition at line 11514 of file il.h.

11514 {
11515 ASSERT(!Done());
11516 ++index_;
11517 }
#define ASSERT(E)

◆ CurrentLocation()

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

Definition at line 11535 of file il.h.

11535 {
11536 ASSERT(!Done());
11537 return environment_->locations_[index_];
11538 }

◆ CurrentValue()

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

Definition at line 11523 of file il.h.

11523 {
11524 ASSERT(!Done());
11525 ASSERT(environment_->values_[index_] != nullptr);
11526 return environment_->values_[index_];
11527 }

◆ Done()

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

Definition at line 11519 of file il.h.

11519 {
11520 return (environment_ == nullptr) || (index_ >= environment_->Length());
11521 }
intptr_t Length() const
Definition il.h:11658

◆ environment()

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

Definition at line 11512 of file il.h.

11512{ return environment_; }

◆ operator=()

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

Definition at line 11506 of file il.h.

11506 {
11507 environment_ = other.environment_;
11508 index_ = other.index_;
11509 return *this;
11510 }

◆ SetCurrentLocation()

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

Definition at line 11540 of file il.h.

11540 {
11541 ASSERT(!Done());
11542 environment_->locations_[index_] = loc;
11543 }

◆ SetCurrentValue()

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

Definition at line 11529 of file il.h.

11529 {
11530 ASSERT(!Done());
11531 ASSERT(value != nullptr);
11532 environment_->values_[index_] = value;
11533 }
uint8_t value

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