Poplar and PopLibs
poplar::program::Sequence Class Reference

Program that executes a sequence of programs. More...

#include <Program.hpp>

Inheritance diagram for poplar::program::Sequence:
poplar::program::Program

Public Member Functions

 Sequence (const DebugContext &debugContext={})
 Construct an empty execution sequence (with optional debug context).
 
 Sequence (std::initializer_list< Program > programs, const DebugContext &debugContext={})
 Construct an execution sequence from a list of programs. More...
 
void add (const Program &p)
 Add a program to the end of the sequence. More...
 

Detailed Description

Program that executes a sequence of programs.

Constructor & Destructor Documentation

◆ Sequence()

poplar::program::Sequence::Sequence ( std::initializer_list< Program programs,
const DebugContext debugContext = {} 
)
inline

Construct an execution sequence from a list of programs.

This constructor is used to create a sequence of programs where the programs are provided as arguments to the constructor.

Sequence{prog1, prog2, prog3}
Sequence({prog1, prog2, prog3}, {debugId})
Sequence({prog1, prog2, prog3}, {debugId, "debugName"})
Sequence(const DebugContext &debugContext={})
Construct an empty execution sequence (with optional debug context).
Definition: Program.hpp:89
Parameters
programsList of programs in the sequence.
debugContextOptional DebugId and program name.

Member Function Documentation

◆ add()

void poplar::program::Sequence::add ( const Program p)

Add a program to the end of the sequence.

Parameters
pThe program to add.

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