libqasm
library for handling cQASM files
Public Member Functions | Public Attributes | List of all members
func_gen::Function Class Reference

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...
 

Detailed Description

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.

Collaboration diagram for func_gen::Function:
Collaboration graph
[legend]

Constructor & Destructor Documentation

◆ Function()

func_gen::Function::Function ( const std::string &  name,
const std::string &  args 
)
inline

Constructs a normal function.

name must be a valid identifier.

Definition at line 129 of file func-gen.cpp.

Member Data Documentation

◆ cpp_name

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.

◆ cqasm_name

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.

◆ cqasm_args

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.


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