SUNphi
1.0
|
A program made of a set of pair of instructions. More...
#include <Partitioner.hpp>
Public Member Functions | |
void | add (Action &&fw, Action &&bw) |
Adds an instruction into the program. More... | |
void | exec () |
Runs the program. More... | |
Private Types | |
using | Action = std::function< bool(void)> |
Action to be performed in the list. | |
using | Move = std::pair< Action, Action > |
Pair of actions to be performed forward or backward. | |
Private Attributes | |
Vector< Move > | instructions |
List of instrcutions to be executed. | |
Vector< int > | data |
Data used for loops. | |
A program made of a set of pair of instructions.
Definition at line 291 of file Partitioner.hpp.
Adds an instruction into the program.
fw | Instruction to be executed when advancing |
bw | Instruction to be exectued when rewinding |
Definition at line 310 of file Partitioner.hpp.
|
inline |
Runs the program.
Index of the current instruction
Current direction of motion
Indent current scope
Indent current scope
Indent current scope
Definition at line 317 of file Partitioner.hpp.