43#include "instructions/instruction.h"
58 std::vector<std::reference_wrapper<const Instruction>>
instructions;
This abstract class is the base class for any instruction to be used in a Program.
Definition: instruction.h:59
Class for storing a set of Instruction.
Definition: set.h:53
Set()
Default constructor.
Definition: set.h:66
bool add(const Instruction &instruction)
Add an instruction to the set.
Definition: set.cpp:41
const Instruction & getInstruction(const uint64_t i) const
Get the Instruction at the given index i in the Set.
Definition: set.cpp:53
std::vector< std::reference_wrapper< const Instruction > > instructions
Ordered container of the Instruction of the set.
Definition: set.h:58
unsigned int getMaxNbOperands() const
Get the maximum number of operands for Instruction currently contained in the Set.
Definition: set.cpp:59
unsigned int getNbInstructions() const
Get the number of Instruction contained in the Set.
Definition: set.cpp:48
Definition: addPrimitiveType.h:48