Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
qasm::IndexedId Class Reference

#include <SimpleOps.h>

Inheritance diagram for qasm::IndexedId:
qasm::AbstractSyntaxTree

Public Member Functions

 IndexedId ()
 IndexedId (const std::string &id, int index)
 ~IndexedId ()
double Eval () const
 operator std::string () const
Public Member Functions inherited from qasm::AbstractSyntaxTree
virtual ~AbstractSyntaxTree ()=default
virtual double Eval (const std::unordered_map< std::string, double > &variables) const

Public Attributes

std::string id
int index
int base = 0
std::string declType

Additional Inherited Members

Protected Member Functions inherited from qasm::AbstractSyntaxTree
 AbstractSyntaxTree ()=default
 AbstractSyntaxTree (const AbstractSyntaxTree &)=default
 AbstractSyntaxTree (AbstractSyntaxTree &&)=default
AbstractSyntaxTreeoperator= (const AbstractSyntaxTree &)=default
AbstractSyntaxTreeoperator= (AbstractSyntaxTree &&)=default

Detailed Description

Definition at line 22 of file SimpleOps.h.

Constructor & Destructor Documentation

◆ IndexedId() [1/2]

qasm::IndexedId::IndexedId ( )
inline

Definition at line 24 of file SimpleOps.h.

◆ IndexedId() [2/2]

qasm::IndexedId::IndexedId ( const std::string & id,
int index )
inline

Definition at line 25 of file SimpleOps.h.

◆ ~IndexedId()

qasm::IndexedId::~IndexedId ( )
inline

Definition at line 27 of file SimpleOps.h.

Member Function Documentation

◆ Eval()

double qasm::IndexedId::Eval ( ) const
inlinevirtual

Reimplemented from qasm::AbstractSyntaxTree.

Definition at line 29 of file SimpleOps.h.

◆ operator std::string()

qasm::IndexedId::operator std::string ( ) const
inline

Definition at line 31 of file SimpleOps.h.

Member Data Documentation

◆ base

int qasm::IndexedId::base = 0

Definition at line 37 of file SimpleOps.h.

◆ declType

std::string qasm::IndexedId::declType

Definition at line 38 of file SimpleOps.h.

◆ id

std::string qasm::IndexedId::id

Definition at line 35 of file SimpleOps.h.

◆ index

int qasm::IndexedId::index

Definition at line 36 of file SimpleOps.h.


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