AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
autopas::RuleVM::Instruction Struct Reference

An instruction to execute in the VM. More...

#include <RuleVM.h>

Public Member Functions

 Instruction (CMD cmd, MemoryCell payload=MemoryCell{0ul})
 Constructs an Instruction.
 

Public Attributes

CMD cmd
 The command to execute.
 
MemoryCell payload
 The payload the instruction can have.
 

Detailed Description

An instruction to execute in the VM.

Consists out of a command and an argument (payload), e.g. LOADC 1.

Not all commands use the payload.

Constructor & Destructor Documentation

◆ Instruction()

autopas::RuleVM::Instruction::Instruction ( CMD  cmd,
MemoryCell  payload = MemoryCell{0ul} 
)
inlineexplicit

Constructs an Instruction.

Parameters
cmdThe command.
payloadThe payload.

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