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

#include <flow_graph.h>

Inheritance diagram for dart::BlockIterator:
dart::ValueObject

Public Member Functions

 BlockIterator (const GrowableArray< BlockEntryInstr * > &block_order)
 
 BlockIterator (const BlockIterator &other)
 
void Advance ()
 
bool Done () const
 
BlockEntryInstrCurrent () const
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Detailed Description

Definition at line 31 of file flow_graph.h.

Constructor & Destructor Documentation

◆ BlockIterator() [1/2]

dart::BlockIterator::BlockIterator ( const GrowableArray< BlockEntryInstr * > &  block_order)
inlineexplicit

Definition at line 33 of file flow_graph.h.

34 : block_order_(block_order), current_(0) {}

◆ BlockIterator() [2/2]

dart::BlockIterator::BlockIterator ( const BlockIterator other)
inline

Definition at line 36 of file flow_graph.h.

37 : ValueObject(),
38 block_order_(other.block_order_),
39 current_(other.current_) {}

Member Function Documentation

◆ Advance()

void dart::BlockIterator::Advance ( )
inline

Definition at line 41 of file flow_graph.h.

41 {
42 ASSERT(!Done());
43 current_++;
44 }
bool Done() const
Definition: flow_graph.h:46
#define ASSERT(E)

◆ Current()

BlockEntryInstr * dart::BlockIterator::Current ( ) const
inline

Definition at line 48 of file flow_graph.h.

48{ return block_order_[current_]; }

◆ Done()

bool dart::BlockIterator::Done ( ) const
inline

Definition at line 46 of file flow_graph.h.

46{ return current_ >= block_order_.length(); }

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