libqasm
library for handling cQASM files
|
Represents a possible overload for the parameter types of a function, gate, or error model. More...
Public Member Functions | |
template<class... Ts> | |
Overload (const T &tag, const Types ¶m_types) | |
Construct a possible overload. More... | |
const T & | get_tag () const |
Returns the tag for this overload. More... | |
size_t | num_params () const |
Returns the number of parameters for this overload. More... | |
const Type & | param_type_at (size_t index) const |
Returns the parameter type object for the parameter at the specified index. More... | |
Represents a possible overload for the parameter types of a function, gate, or error model.
T is some tag type identifying the overload.
Definition at line 66 of file cqasm-v1-resolver.cpp.
|
inline |
Construct a possible overload.
Definition at line 75 of file cqasm-v1-resolver.cpp.
|
inline |
Returns the tag for this overload.
Definition at line 82 of file cqasm-v1-resolver.cpp.
|
inline |
Returns the number of parameters for this overload.
Definition at line 89 of file cqasm-v1-resolver.cpp.
|
inline |
Returns the parameter type object for the parameter at the specified index.
Definition at line 97 of file cqasm-v1-resolver.cpp.