libqasm
library for handling cQASM files
|
Table of the supported instructions and their overloads. More...
Public Member Functions | |
ErrorModelTable () | |
~ErrorModelTable () | |
ErrorModelTable (const ErrorModelTable &t) | |
ErrorModelTable (ErrorModelTable &&t) | |
ErrorModelTable & | operator= (const ErrorModelTable &t) |
ErrorModelTable & | operator= (ErrorModelTable &&t) |
void | add (const error_model::ErrorModel &type) |
Registers an error model. More... | |
tree::One< semantic::ErrorModel > | resolve (const std::string &name, const values::Values &args) const |
Resolves an error model. More... | |
Table of the supported instructions and their overloads.
Definition at line 121 of file cqasm-v1-resolver.hpp.
#include <cqasm-v1-resolver.hpp>
cqasm::v1::resolver::ErrorModelTable::ErrorModelTable | ( | ) |
Definition at line 265 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::ErrorModelTable::~ErrorModelTable | ( | ) |
Definition at line 266 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::ErrorModelTable::ErrorModelTable | ( | const ErrorModelTable & | t | ) |
Definition at line 267 of file cqasm-v1-resolver.cpp.
cqasm::v1::resolver::ErrorModelTable::ErrorModelTable | ( | ErrorModelTable && | t | ) |
Definition at line 268 of file cqasm-v1-resolver.cpp.
ErrorModelTable & cqasm::v1::resolver::ErrorModelTable::operator= | ( | const ErrorModelTable & | t | ) |
Definition at line 269 of file cqasm-v1-resolver.cpp.
ErrorModelTable & cqasm::v1::resolver::ErrorModelTable::operator= | ( | ErrorModelTable && | t | ) |
Definition at line 273 of file cqasm-v1-resolver.cpp.
void cqasm::v1::resolver::ErrorModelTable::add | ( | const error_model::ErrorModel & | type | ) |
Registers an error model.
Definition at line 281 of file cqasm-v1-resolver.cpp.
tree::One< semantic::ErrorModel > cqasm::v1::resolver::ErrorModelTable::resolve | ( | const std::string & | name, |
const values::Values & | args | ||
) | const |
Resolves an error model.
Throws NameResolutionFailure if no error model by the given name exists, OverloadResolutionFailure if no overload exists for the given arguments, or otherwise returns the resolved error model node. Annotation data and line number information still needs to be set by the caller.
Definition at line 292 of file cqasm-v1-resolver.cpp.