libqasm
library for handling cQASM files
|
Table of the supported instructions and their overloads. More...
Public Member Functions | |
InstructionTable () | |
~InstructionTable () | |
InstructionTable (const InstructionTable &t) | |
InstructionTable (InstructionTable &&t) | |
InstructionTable & | operator= (const InstructionTable &t) |
InstructionTable & | operator= (InstructionTable &&t) |
void | add (const instruction::Instruction &type) |
Registers an instruction type. More... | |
tree::One< semantic::Instruction > | resolve (const std::string &name, const values::Values &args) const |
Resolves an instruction. More... | |
Table of the supported instructions and their overloads.
Definition at line 157 of file cqasm-v1-resolver.hpp.
#include <cqasm-v1-resolver.hpp>
cqasm::v1::resolver::InstructionTable::InstructionTable | ( | ) |
Definition at line 303 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::InstructionTable::~InstructionTable | ( | ) |
Definition at line 304 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::InstructionTable::InstructionTable | ( | const InstructionTable & | t | ) |
Definition at line 305 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::InstructionTable::InstructionTable | ( | InstructionTable && | t | ) |
Definition at line 306 of file cqasm-v1-resolver.cpp.
InstructionTable & cqasm::v1::resolver::InstructionTable::operator= | ( | const InstructionTable & | t | ) |
Definition at line 307 of file cqasm-v1-resolver.cpp.
InstructionTable & cqasm::v1::resolver::InstructionTable::operator= | ( | InstructionTable && | t | ) |
Definition at line 311 of file cqasm-v1-resolver.cpp.
void cqasm::v1::resolver::InstructionTable::add | ( | const instruction::Instruction & | type | ) |
Registers an instruction type.
Definition at line 319 of file cqasm-v1-resolver.cpp.
tree::One< semantic::Instruction > cqasm::v1::resolver::InstructionTable::resolve | ( | const std::string & | name, |
const values::Values & | args | ||
) | const |
Resolves an instruction.
Throws NameResolutionFailure if no instruction by the given name exists, OverloadResolutionFailure if no overload exists for the given arguments, or otherwise returns the resolved instruction node. Annotation data, line number information, and the condition still need to be set by the caller.
Definition at line 330 of file cqasm-v1-resolver.cpp.