libqasm
library for handling cQASM files
Public Member Functions | List of all members
cqasm::v1::resolver::Overload< T > Class Template Reference

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 &param_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 Typeparam_type_at (size_t index) const
 Returns the parameter type object for the parameter at the specified index. More...
 

Detailed Description

template<class T>
class cqasm::v1::resolver::Overload< T >

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.

Constructor & Destructor Documentation

◆ Overload()

template<class T>
template<class... Ts>
cqasm::v1::resolver::Overload< T >::Overload ( const T &  tag,
const Types param_types 
)
inline

Construct a possible overload.

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

Member Function Documentation

◆ get_tag()

template<class T>
const T& cqasm::v1::resolver::Overload< T >::get_tag ( ) const
inline

Returns the tag for this overload.

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

◆ num_params()

template<class T>
size_t cqasm::v1::resolver::Overload< T >::num_params ( ) const
inline

Returns the number of parameters for this overload.

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

◆ param_type_at()

template<class T>
const Type& cqasm::v1::resolver::Overload< T >::param_type_at ( size_t  index) const
inline

Returns the parameter type object for the parameter at the specified index.

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


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