SUNphi  1.0
SUNphi::PartitioningProgram Class Reference

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< Moveinstructions
 List of instrcutions to be executed.
 
Vector< int > data
 Data used for loops.
 

Detailed Description

A program made of a set of pair of instructions.

Definition at line 291 of file Partitioner.hpp.

Member Function Documentation

void SUNphi::PartitioningProgram::add ( Action &&  fw,
Action &&  bw 
)
inline

Adds an instruction into the program.

Parameters
fwInstruction to be executed when advancing
bwInstruction to be exectued when rewinding

Definition at line 310 of file Partitioner.hpp.

void SUNphi::PartitioningProgram::exec ( )
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.


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