libqasm
library for handling cQASM files
Public Member Functions | List of all members
cqasm::v1::resolver::InstructionTable Class Reference

Table of the supported instructions and their overloads. More...

Public Member Functions

 InstructionTable ()
 
 ~InstructionTable ()
 
 InstructionTable (const InstructionTable &t)
 
 InstructionTable (InstructionTable &&t)
 
InstructionTableoperator= (const InstructionTable &t)
 
InstructionTableoperator= (InstructionTable &&t)
 
void add (const instruction::Instruction &type)
 Registers an instruction type. More...
 
tree::One< semantic::Instructionresolve (const std::string &name, const values::Values &args) const
 Resolves an instruction. More...
 

Detailed Description

Table of the supported instructions and their overloads.

Definition at line 157 of file cqasm-v1-resolver.hpp.

#include <cqasm-v1-resolver.hpp>

Constructor & Destructor Documentation

◆ InstructionTable() [1/3]

cqasm::v1::resolver::InstructionTable::InstructionTable ( )

Definition at line 303 of file cqasm-v1-resolver.cpp.

◆ ~InstructionTable()

cqasm::v1::resolver::InstructionTable::~InstructionTable ( )

Definition at line 304 of file cqasm-v1-resolver.cpp.

◆ InstructionTable() [2/3]

cqasm::v1::resolver::InstructionTable::InstructionTable ( const InstructionTable t)

Definition at line 305 of file cqasm-v1-resolver.cpp.

◆ InstructionTable() [3/3]

cqasm::v1::resolver::InstructionTable::InstructionTable ( InstructionTable &&  t)

Definition at line 306 of file cqasm-v1-resolver.cpp.

Member Function Documentation

◆ operator=() [1/2]

InstructionTable & cqasm::v1::resolver::InstructionTable::operator= ( const InstructionTable t)

Definition at line 307 of file cqasm-v1-resolver.cpp.

◆ operator=() [2/2]

InstructionTable & cqasm::v1::resolver::InstructionTable::operator= ( InstructionTable &&  t)

Definition at line 311 of file cqasm-v1-resolver.cpp.

◆ add()

void cqasm::v1::resolver::InstructionTable::add ( const instruction::Instruction type)

Registers an instruction type.

Definition at line 319 of file cqasm-v1-resolver.cpp.

◆ resolve()

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.


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