libqasm
library for handling cQASM files
|
Represents a previously generated function, to be added in the register function once it is generated. More...
Public Member Functions | |
Function (const std::string &name, const std::string &args) | |
Constructs a normal function. More... | |
Public Attributes | |
const std::string | cpp_name |
Name of the function implementation as generated in the C++ file. More... | |
const std::string | cqasm_name |
Name of the function as exposed to cQASM. More... | |
const std::string | cqasm_args |
Argument type spec for overload resolution, type checking, and type promotion. More... | |
Represents a previously generated function, to be added in the register function once it is generated.
Definition at line 40 of file func-gen.cpp.
|
inline |
Constructs a normal function.
name must be a valid identifier.
Definition at line 129 of file func-gen.cpp.
const std::string func_gen::Function::cpp_name |
Name of the function implementation as generated in the C++ file.
Definition at line 46 of file func-gen.cpp.
const std::string func_gen::Function::cqasm_name |
Name of the function as exposed to cQASM.
Definition at line 51 of file func-gen.cpp.
const std::string func_gen::Function::cqasm_args |
Argument type spec for overload resolution, type checking, and type promotion.
See cqasm::types::from_spec.
Definition at line 57 of file func-gen.cpp.