#include <InstructionIterator.hpp>
The InstructionIterator provides a mechanism for a pre-order traversal of an Instruction tree.
xacc::InstructionIterator::InstructionIterator |
( |
std::shared_ptr< Instruction > |
r | ) |
|
|
inline |
The constructor, takes the root of the tree as input.
- Parameters
-
bool xacc::InstructionIterator::hasNext |
( |
| ) |
|
|
inline |
Return true if there are still instructions left to traverse.
- Returns
std::shared_ptr<Instruction> xacc::InstructionIterator::next |
( |
| ) |
|
|
inline |
std::stack<std::shared_ptr<Instruction> > xacc::InstructionIterator::instStack |
|
protected |
A stack used to implement the tree traversal
std::shared_ptr<Instruction> xacc::InstructionIterator::root |
|
protected |
The root of the tree, a function
The documentation for this class was generated from the following file: